Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001273, allocations: 113.6 kB / 17.69 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.001301, allocations: 51.36 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1413, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.003527/0.1449, allocations: 1.453 MB / 353 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003087/0.1452, allocations: 101.1 kB / 353.1 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.921e-05/0.1453, allocations: 0 / 353.1 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.852e-05/0.1454, allocations: 7.922 kB / 353.1 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.344e-05/0.1454, allocations: 3.938 kB / 353.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.1457, allocations: 27.97 kB / 353.1 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000101/0.1458, allocations: 19.88 kB / 353.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.146, allocations: 15.98 kB / 353.1 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.491e-05/0.146, allocations: 11.94 kB / 353.1 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.648e-05/0.1461, allocations: 11.92 kB / 353.2 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.1461, allocations: 4 kB / 353.2 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.246e-05/0.1462, allocations: 0 / 353.2 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.127e-05/0.1462, allocations: 11.98 kB / 353.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.407e-05/0.1463, allocations: 11.94 kB / 353.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.1464, allocations: 23.84 kB / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.1464, allocations: 0 / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.539e-06/0.1464, allocations: 0 / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.1464, allocations: 0 / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000692/0.1471, allocations: 355.3 kB / 353.6 MB, free: 1.586 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.1472, allocations: 11.97 kB / 353.6 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.053e-05/0.1473, allocations: 8.844 kB / 353.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.1476, allocations: 168.4 kB / 353.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.1476, allocations: 4.375 kB / 353.7 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.1476, allocations: 4.375 kB / 353.8 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003987/0.148, allocations: 115.8 kB / 353.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.1481, allocations: 192 / 353.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.1481, allocations: 3.938 kB / 353.9 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1481, allocations: 0 / 353.9 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.093e-05/0.1482, allocations: 19.98 kB / 353.9 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002123/0.1484, allocations: 153.7 kB / 354 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.1486, allocations: 62.47 kB / 354.1 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.532e-05/0.1487, allocations: 24.92 kB / 354.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.1487, allocations: 0 / 354.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.1488, allocations: 38.56 kB / 354.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.1488, allocations: 0 / 354.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002645/0.149, allocations: 69.55 kB / 354.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.683e-05/0.1491, allocations: 59.41 kB / 354.3 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1493, allocations: 105.8 kB / 354.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.1493, allocations: 25.7 kB / 354.4 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/0.1494, allocations: 84.14 kB / 354.5 MB, free: 500 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.33e-05/0.1494, allocations: 4 kB / 354.5 MB, free: 496 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.1494, allocations: 9.719 kB / 354.5 MB, free: 480 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002219/0.1497, allocations: 322.8 kB / 354.8 MB, free: 148 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.364e-05/0.1497, allocations: 0 / 354.8 MB, free: 148 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.672e-05/0.1497, allocations: 27.69 kB / 354.9 MB, free: 108 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.85e-05/0.1498, allocations: 39.36 kB / 354.9 MB, free: 56 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1498, allocations: 4 kB / 354.9 MB, free: 52 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001249/0.1499, allocations: 57.64 kB / 355 MB, free: 15.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.15, allocations: 7.938 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.15, allocations: 7.938 kB / 355 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.15, allocations: 3.984 kB / 355 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.889e-05/0.1501, allocations: 11.94 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.1501, allocations: 3.984 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.867e-05/0.1501, allocations: 7.906 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.1502, allocations: 4 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.1503, allocations: 117.8 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.1504, allocations: 61.67 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.776e-05/0.1505, allocations: 7.844 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1505, allocations: 0 / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.1505, allocations: 0 / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1505, allocations: 7.875 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.1506, allocations: 153.7 kB / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1506, allocations: 4 kB / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.864e-05/0.1507, allocations: 7.984 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.1507, allocations: 4 kB / 355.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1507, allocations: 7.938 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1507, allocations: 4 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1507, allocations: 0 / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001633/0.1509, allocations: 85.34 kB / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.458e-05/0.1509, allocations: 77.11 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.151, allocations: 3.938 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.611e-05/0.151, allocations: 8 kB / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.452e-06/0.151, allocations: 4.031 kB / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.151, allocations: 0 / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.555e-05/0.1511, allocations: 87.27 kB / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1511, allocations: 0 / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000214/0.1513, allocations: 4 kB / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001378/0.1515, allocations: 99.72 kB / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001448/0.1516, allocations: 28.11 kB / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1516, allocations: 0 / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.4e-07/0.1516, allocations: 0 / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.1519, allocations: 27.92 kB / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003515/0.1522, allocations: 117.5 kB / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.1526, allocations: 0.6845 MB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.754e-05/0.1526, allocations: 0 / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.967e-05/0.1526, allocations: 11.56 kB / 356.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1526, allocations: 4 kB / 356.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of Templates: time 0.00291/0.1556, allocations: 315 kB / 356.9 MB, free: 13.86 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches