Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 175.2 kB / 17.39 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007615/0.0007616, allocations: 97.89 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003443, allocations: 11.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3065, allocations: 50.41 MB / 402.8 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.4181, allocations: 81.65 MB / 484.4 MB, free: 14.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003681/0.4186, allocations: 89.2 kB / 484.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02542/0.444, allocations: 8.874 MB / 493.4 MB, free: 5.727 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4441, allocations: 0 / 493.4 MB, free: 5.727 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.548e-05/0.4441, allocations: 4 kB / 493.4 MB, free: 5.723 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001013/0.4451, allocations: 0.5275 MB / 493.9 MB, free: 5.137 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.4452, allocations: 8.031 kB / 493.9 MB, free: 5.129 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.4453, allocations: 32.56 kB / 493.9 MB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/0.4458, allocations: 286.8 kB / 494.2 MB, free: 4.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.4459, allocations: 8.375 kB / 494.2 MB, free: 4.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.497e-05/0.4459, allocations: 12.38 kB / 494.2 MB, free: 4.758 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005697/0.4465, allocations: 309.2 kB / 494.5 MB, free: 4.434 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.4465, allocations: 192 / 494.5 MB, free: 4.434 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.4466, allocations: 11.94 kB / 494.6 MB, free: 4.422 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.4466, allocations: 0 / 494.6 MB, free: 4.422 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.4467, allocations: 63.89 kB / 494.6 MB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005972/0.4473, allocations: 394.4 kB / 495 MB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003328/0.4477, allocations: 180 kB / 495.2 MB, free: 3.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.4478, allocations: 86.55 kB / 495.3 MB, free: 3.621 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.4479, allocations: 7.984 kB / 495.3 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001588/0.448, allocations: 75.33 kB / 495.3 MB, free: 3.527 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.535e-06/0.4481, allocations: 0 / 495.3 MB, free: 3.527 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005011/0.4486, allocations: 229.2 kB / 495.6 MB, free: 3.297 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.4487, allocations: 148.5 kB / 495.7 MB, free: 3.121 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003412/0.449, allocations: 272.9 kB / 496 MB, free: 2.844 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.4491, allocations: 29.7 kB / 496 MB, free: 2.809 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.393e-05/0.4492, allocations: 116.7 kB / 496.1 MB, free: 2.688 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.192e-05/0.4492, allocations: 23.7 kB / 496.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.4492, allocations: 11.94 kB / 496.2 MB, free: 2.652 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.4494, allocations: 338.8 kB / 496.5 MB, free: 2.312 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.475e-05/0.4495, allocations: 40.44 kB / 496.5 MB, free: 2.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.4497, allocations: 176.7 kB / 496.7 MB, free: 2.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.4499, allocations: 203.2 kB / 496.9 MB, free: 1.785 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.45, allocations: 0 / 496.9 MB, free: 1.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004116/0.4504, allocations: 225.2 kB / 497.1 MB, free: 1.559 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.4504, allocations: 4 kB / 497.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4504, allocations: 8 kB / 497.1 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.4505, allocations: 4 kB / 497.1 MB, free: 1.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.4506, allocations: 27.92 kB / 497.2 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/0.4506, allocations: 4 kB / 497.2 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.4507, allocations: 23.83 kB / 497.2 MB, free: 1.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.4507, allocations: 12.59 kB / 497.2 MB, free: 1.477 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,sample1.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001714/0.4509, allocations: 176.4 kB / 497.4 MB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.4511, allocations: 117.4 kB / 497.5 MB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002663/0.4514, allocations: 123.3 kB / 497.6 MB, free: 1.047 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.4514, allocations: 4 kB / 497.6 MB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4514, allocations: 0 / 497.6 MB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.4514, allocations: 4 kB / 497.6 MB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002434/0.4517, allocations: 253.4 kB / 497.9 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.4517, allocations: 4 kB / 497.9 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.634e-05/0.4518, allocations: 11.94 kB / 497.9 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.4518, allocations: 4 kB / 497.9 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.4518, allocations: 4.469 kB / 497.9 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.4518, allocations: 7.984 kB / 497.9 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4518, allocations: 0 / 497.9 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003619/0.4522, allocations: 241.8 kB / 498.1 MB, free: 464 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.4523, allocations: 116.8 kB / 498.2 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.073e-05/0.4524, allocations: 8 kB / 498.2 MB, free: 320 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.802e-05/0.4524, allocations: 11.98 kB / 498.3 MB, free: 308 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.4525, allocations: 4 kB / 498.3 MB, free: 304 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.4525, allocations: 15.98 kB / 498.3 MB, free: 288 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002104/0.4527, allocations: 196.5 kB / 498.5 MB, free: 88 kB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4528, allocations: 0 / 498.5 MB, free: 88 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.000382/0.4531, allocations: 51.94 kB / 498.5 MB, free: 36 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample1.u,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001036/0.4542, allocations: 453.8 kB / 499 MB, free: 15.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003648/0.4546, allocations: 144.6 kB / 499.1 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4546, allocations: 192 / 499.1 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.575e-05/0.4547, allocations: 31.97 kB / 499.1 MB, free: 15.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005286/0.4552, allocations: 108.3 kB / 499.2 MB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007457/0.456, allocations: 452.5 kB / 499.7 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.4563, allocations: 0.7563 MB / 0.4887 GB, free: 14.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000108/0.4564, allocations: 21.95 kB / 0.4887 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.886e-05/0.4565, allocations: 27.42 kB / 0.4888 GB, free: 14.17 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4565, allocations: 4 kB / 0.4888 GB, free: 14.17 MB / 378.7 MB Notification: Performance of Templates: time 0.007157/0.4637, allocations: 2.869 MB / 0.4916 GB, free: 11.32 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches