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.001016/0.001016, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008339/0.000834, allocations: 100.5 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.473e-05/1.476e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.09851, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3219/0.4205, allocations: 80.87 MB / 468.3 MB, free: 13.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.4207, allocations: 79.95 kB / 468.4 MB, free: 13.9 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02392/0.4446, allocations: 8.783 MB / 477.2 MB, free: 5.117 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4446, allocations: 0 / 477.2 MB, free: 5.117 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.4447, allocations: 4 kB / 477.2 MB, free: 5.113 MB / 346.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.0006202/0.4453, allocations: 0.4924 MB / 477.7 MB, free: 4.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.4453, allocations: 12.03 kB / 477.7 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.229e-05/0.4454, allocations: 31.58 kB / 477.7 MB, free: 4.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.4458, allocations: 269.7 kB / 478 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.4458, allocations: 8.562 kB / 478 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.4459, allocations: 8 kB / 478 MB, free: 4.211 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001458/0.446, allocations: 67.97 kB / 478.1 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000412/0.4464, allocations: 262.5 kB / 478.3 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.4465, allocations: 7.953 kB / 478.3 MB, free: 3.855 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.4465, allocations: 4 kB / 478.3 MB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.4465, allocations: 3.938 kB / 478.4 MB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004386/0.4469, allocations: 355 kB / 478.7 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.4472, allocations: 160 kB / 478.9 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.608e-05/0.4473, allocations: 70.7 kB / 478.9 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.4473, allocations: 3.984 kB / 478.9 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.4475, allocations: 83.28 kB / 479 MB, free: 3.098 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.743e-06/0.4475, allocations: 0 / 479 MB, free: 3.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.000315/0.4478, allocations: 165.3 kB / 479.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.794e-05/0.4479, allocations: 140.5 kB / 479.3 MB, free: 2.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002503/0.4481, allocations: 236.4 kB / 479.5 MB, free: 2.527 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.4482, allocations: 25.7 kB / 479.6 MB, free: 2.496 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.052e-05/0.4483, allocations: 120.9 kB / 479.7 MB, free: 2.371 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/0.4483, allocations: 39.62 kB / 479.7 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.4483, allocations: 0 / 479.7 MB, free: 2.332 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4484, allocations: 330.8 kB / 480 MB, free: 2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.575e-05/0.4485, allocations: 32.47 kB / 480.1 MB, free: 1.965 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.4487, allocations: 157.8 kB / 480.2 MB, free: 1.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.465e-05/0.4488, allocations: 56.97 kB / 480.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4488, allocations: 4 kB / 480.3 MB, free: 1.691 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000265/0.449, allocations: 189 kB / 480.5 MB, free: 1.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.4491, allocations: 11.94 kB / 480.5 MB, free: 1.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.4491, allocations: 4.531 kB / 480.5 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.4491, allocations: 12 kB / 480.5 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.4492, allocations: 23.92 kB / 480.5 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4493, allocations: 8 kB / 480.5 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.4494, allocations: 11.98 kB / 480.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.4494, allocations: 8 kB / 480.6 MB, free: 1.422 MB / 346.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 () * 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 9.642e-05/0.4495, allocations: 128.9 kB / 480.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.4497, allocations: 117.4 kB / 480.8 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000181/0.4498, allocations: 111.5 kB / 480.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4499, allocations: 4 kB / 480.9 MB, free: 1.051 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.4499, allocations: 3.984 kB / 480.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.4499, allocations: 0 / 480.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.4501, allocations: 226 kB / 481.1 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.4501, allocations: 0 / 481.1 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.737e-05/0.4501, allocations: 11.94 kB / 481.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4501, allocations: 0 / 481.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.4502, allocations: 4 kB / 481.1 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4502, allocations: 3.953 kB / 481.1 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.4502, allocations: 11.98 kB / 481.2 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002669/0.4505, allocations: 227.4 kB / 481.4 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.4506, allocations: 124.7 kB / 481.5 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/0.4506, allocations: 8 kB / 481.5 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.583e-05/0.4507, allocations: 8 kB / 481.5 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.173e-05/0.4508, allocations: 11.98 kB / 481.5 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.4508, allocations: 7.938 kB / 481.5 MB, free: 332 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001621/0.4509, allocations: 188.5 kB / 481.7 MB, free: 140 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.451, allocations: 0 / 481.7 MB, free: 140 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003059/0.4513, allocations: 43.92 kB / 481.8 MB, free: 96 kB / 346.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) * 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.0008288/0.4521, allocations: 369.2 kB / 482.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002365/0.4523, allocations: 119.7 kB / 482.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4524, allocations: 3.938 kB / 482.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.135e-05/0.4524, allocations: 32.98 kB / 482.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.4528, allocations: 96.33 kB / 482.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005072/0.4534, allocations: 279 kB / 482.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.4537, allocations: 0.7597 MB / 483.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.427e-05/0.4538, allocations: 30.45 kB / 483.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.556e-05/0.4539, allocations: 27.42 kB / 483.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4539, allocations: 0 / 483.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of Templates: time 0.005898/0.4598, allocations: 2.698 MB / 486.2 MB, free: 11.74 MB / 362.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/jenkins/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