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: 179.3 kB / 16.38 MB, free: 5.766 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.408/1.408, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.00101/0.00101, allocations: 97.36 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003014, allocations: 8 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2861, allocations: 50.4 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1091/0.3953, allocations: 81.61 MB / 483.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.3956, allocations: 83.89 kB / 483.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0238/0.4194, allocations: 8.872 MB / 492.1 MB, free: 5.879 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4195, allocations: 4 kB / 492.1 MB, free: 5.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.4195, allocations: 4 kB / 492.1 MB, free: 5.871 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.0008173/0.4203, allocations: 0.5351 MB / 492.6 MB, free: 5.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.4204, allocations: 8.031 kB / 492.6 MB, free: 5.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.399e-05/0.4205, allocations: 31.58 kB / 492.6 MB, free: 5.242 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004666/0.4209, allocations: 273.6 kB / 492.9 MB, free: 4.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.421, allocations: 12 kB / 492.9 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.421, allocations: 12 kB / 492.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005795/0.4216, allocations: 293.6 kB / 493.2 MB, free: 4.602 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.4216, allocations: 8 kB / 493.2 MB, free: 4.594 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.4217, allocations: 7.953 kB / 493.2 MB, free: 4.586 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.4217, allocations: 4 kB / 493.2 MB, free: 4.582 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.4218, allocations: 59.91 kB / 493.3 MB, free: 4.523 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005999/0.4225, allocations: 390.4 kB / 493.7 MB, free: 4.086 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.4228, allocations: 179.8 kB / 493.8 MB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.4228, allocations: 12.08 kB / 493.9 MB, free: 3.871 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001478/0.423, allocations: 75.52 kB / 493.9 MB, free: 3.785 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.214e-06/0.423, allocations: 0 / 493.9 MB, free: 3.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004913/0.4235, allocations: 233.4 kB / 494.2 MB, free: 3.551 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.798e-05/0.4236, allocations: 144.5 kB / 494.3 MB, free: 3.379 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/0.4239, allocations: 244.1 kB / 494.5 MB, free: 3.133 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.4239, allocations: 33.7 kB / 494.6 MB, free: 3.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/0.424, allocations: 120.7 kB / 494.7 MB, free: 2.969 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.512e-05/0.4241, allocations: 27.7 kB / 494.7 MB, free: 2.941 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.433e-05/0.4241, allocations: 4 kB / 494.7 MB, free: 2.938 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4242, allocations: 342.7 kB / 495.1 MB, free: 2.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.86e-05/0.4243, allocations: 40.44 kB / 495.1 MB, free: 2.551 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.4245, allocations: 167.5 kB / 495.3 MB, free: 2.332 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.4246, allocations: 63.95 kB / 495.3 MB, free: 2.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.4247, allocations: 4 kB / 495.3 MB, free: 2.266 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003447/0.425, allocations: 224.9 kB / 495.5 MB, free: 2.039 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.425, allocations: 4.531 kB / 495.6 MB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.425, allocations: 4 kB / 495.6 MB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.4251, allocations: 12 kB / 495.6 MB, free: 2.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.918e-05/0.4252, allocations: 23.92 kB / 495.6 MB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.4252, allocations: 7.938 kB / 495.6 MB, free: 1.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.4253, allocations: 19.92 kB / 495.6 MB, free: 1.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.4253, allocations: 16 kB / 495.6 MB, free: 1.953 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.0001664/0.4255, allocations: 160.3 kB / 495.8 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/0.4257, allocations: 137.6 kB / 495.9 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000258/0.426, allocations: 115.4 kB / 496 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.426, allocations: 7.938 kB / 496 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.426, allocations: 0 / 496 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.426, allocations: 0 / 496 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.4263, allocations: 257.4 kB / 496.3 MB, free: 1.219 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4263, allocations: 0 / 496.3 MB, free: 1.219 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.154e-05/0.4263, allocations: 12 kB / 496.3 MB, free: 1.207 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.503e-06/0.4263, allocations: 7.953 kB / 496.3 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.4263, allocations: 0 / 496.3 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.4264, allocations: 11.98 kB / 496.3 MB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4264, allocations: 3.938 kB / 496.3 MB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003609/0.4267, allocations: 253.8 kB / 496.6 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.4269, allocations: 116.8 kB / 496.7 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.4269, allocations: 12 kB / 496.7 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.743e-05/0.427, allocations: 11.98 kB / 496.7 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.792e-05/0.427, allocations: 4 kB / 496.7 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.4271, allocations: 15.98 kB / 496.7 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001866/0.4273, allocations: 196.5 kB / 496.9 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4273, allocations: 0 / 496.9 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003177/0.4276, allocations: 51.94 kB / 497 MB, free: 488 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.0009908/0.4286, allocations: 447.2 kB / 497.4 MB, free: 196 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003163/0.4289, allocations: 143.4 kB / 497.6 MB, free: 56 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4289, allocations: 0 / 497.6 MB, free: 56 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.513e-05/0.429, allocations: 32.97 kB / 497.6 MB, free: 24 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.4295, allocations: 116.9 kB / 497.7 MB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007599/0.4303, allocations: 448.5 kB / 498.1 MB, free: 15.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.4307, allocations: 0.7602 MB / 498.9 MB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.898e-05/0.4308, allocations: 25.94 kB / 498.9 MB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.212e-05/0.4308, allocations: 23.44 kB / 498.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4308, allocations: 3.938 kB / 499 MB, free: 14.6 MB / 378.7 MB Notification: Performance of Templates: time 0.006669/0.4375, allocations: 2.831 MB / 0.49 GB, free: 11.79 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/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