Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001021/0.001021, 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.353/1.353, allocations: 223.2 MB / 240.3 MB, free: 10.1 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.0009883/0.0009883, allocations: 97.91 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003038/0.000304, allocations: 7.938 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2827, allocations: 50.4 MB / 401.5 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1146/0.3974, allocations: 81.08 MB / 482.6 MB, free: 15.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003264/0.3978, allocations: 87.88 kB / 482.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01813/0.416, allocations: 6.559 MB / 489.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.416, allocations: 192 / 489.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.4161, allocations: 7.938 kB / 489.2 MB, free: 8.73 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008198/0.4169, allocations: 0.5001 MB / 489.7 MB, free: 8.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.417, allocations: 8.031 kB / 489.7 MB, free: 8.168 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.771e-05/0.4171, allocations: 23.7 kB / 489.8 MB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.4175, allocations: 261.7 kB / 490 MB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.4176, allocations: 4 kB / 490 MB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.435e-05/0.4176, allocations: 8 kB / 490 MB, free: 7.836 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004048/0.418, allocations: 154.7 kB / 490.2 MB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.418, allocations: 0 / 490.2 MB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.4181, allocations: 4 kB / 490.2 MB, free: 7.656 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.4181, allocations: 3.953 kB / 490.2 MB, free: 7.652 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.4182, allocations: 31.92 kB / 490.2 MB, free: 7.621 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.4188, allocations: 366.4 kB / 490.6 MB, free: 7.207 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.4191, allocations: 107.9 kB / 490.7 MB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.4191, allocations: 11.98 kB / 490.7 MB, free: 7.062 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/0.4193, allocations: 83.34 kB / 490.8 MB, free: 6.969 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.4193, allocations: 0 / 490.8 MB, free: 6.969 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003879/0.4197, allocations: 137.4 kB / 490.9 MB, free: 6.828 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.4198, allocations: 140.7 kB / 491 MB, free: 6.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.4201, allocations: 248 kB / 491.3 MB, free: 6.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.4201, allocations: 25.7 kB / 491.3 MB, free: 6.379 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.4203, allocations: 120.2 kB / 491.4 MB, free: 6.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.928e-05/0.4203, allocations: 19.75 kB / 491.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.4203, allocations: 0 / 491.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.4205, allocations: 330.8 kB / 491.8 MB, free: 5.906 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.971e-05/0.4205, allocations: 16 kB / 491.8 MB, free: 5.891 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.722e-05/0.4206, allocations: 73.98 kB / 491.9 MB, free: 5.797 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.954e-05/0.4207, allocations: 31.94 kB / 491.9 MB, free: 5.766 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4207, allocations: 0 / 491.9 MB, free: 5.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002009/0.4209, allocations: 121.7 kB / 492 MB, free: 5.641 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.421, allocations: 7.953 kB / 492 MB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.421, allocations: 0 / 492 MB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.421, allocations: 7.938 kB / 492 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.419e-05/0.4211, allocations: 15.92 kB / 492 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.4211, allocations: 4 kB / 492 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.659e-05/0.4212, allocations: 4 kB / 492 MB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.4212, allocations: 8 kB / 492 MB, free: 5.594 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001398/0.4214, allocations: 142 kB / 492.2 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.291e-05/0.4215, allocations: 69.34 kB / 492.3 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002535/0.4217, allocations: 115.3 kB / 492.4 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.4217, allocations: 4 kB / 492.4 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4218, allocations: 3.938 kB / 492.4 MB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.4218, allocations: 0 / 492.4 MB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.422, allocations: 229.6 kB / 492.6 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.422, allocations: 3.984 kB / 492.6 MB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.308e-05/0.422, allocations: 12.06 kB / 492.6 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.422, allocations: 0 / 492.6 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.4221, allocations: 4 kB / 492.6 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.4221, allocations: 7.953 kB / 492.6 MB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4221, allocations: 0 / 492.6 MB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.4224, allocations: 182 kB / 492.8 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.4225, allocations: 120.8 kB / 492.9 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.4225, allocations: 15.92 kB / 492.9 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.16e-05/0.4226, allocations: 4 kB / 492.9 MB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.514e-05/0.4227, allocations: 7.984 kB / 492.9 MB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.4227, allocations: 8 kB / 493 MB, free: 4.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001993/0.4229, allocations: 188.5 kB / 493.1 MB, free: 4.367 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4229, allocations: 4 kB / 493.1 MB, free: 4.363 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002552/0.4232, allocations: 36 kB / 493.2 MB, free: 4.328 MB / 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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001067/0.4242, allocations: 434.1 kB / 493.6 MB, free: 4.062 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.4245, allocations: 71.84 kB / 493.7 MB, free: 3.992 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4245, allocations: 0 / 493.7 MB, free: 3.992 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.384e-05/0.4246, allocations: 31.97 kB / 493.7 MB, free: 3.961 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.4249, allocations: 59.2 kB / 493.8 MB, free: 3.906 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005988/0.4255, allocations: 345.1 kB / 494.1 MB, free: 3.531 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.4259, allocations: 0.7322 MB / 494.8 MB, free: 2.773 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.738e-05/0.426, allocations: 21.7 kB / 494.9 MB, free: 2.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.405e-05/0.4261, allocations: 23.44 kB / 494.9 MB, free: 2.73 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4261, allocations: 0 / 494.9 MB, free: 2.73 MB / 362.7 MB Notification: Performance of Templates: time 0.005472/0.4316, allocations: 2.315 MB / 497.2 MB, free: 456 kB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches