Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 176.1 kB / 17.4 MB, free: 4.297 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.473/1.473, allocations: 223.3 MB / 241.4 MB, free: 9.859 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.0009583/0.0009579, allocations: 93.53 kB / 292.6 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003336/0.0003339, allocations: 15.94 kB / 352.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3087, allocations: 50.4 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09354/0.4023, allocations: 81.12 MB / 483.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001864/0.4026, allocations: 84.55 kB / 483.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01557/0.4181, allocations: 5.979 MB / 489.9 MB, free: 9.129 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.4182, allocations: 0 / 489.9 MB, free: 9.129 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.9e-05/0.4182, allocations: 4 kB / 489.9 MB, free: 9.125 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.0005977/0.4188, allocations: 0.4888 MB / 490.4 MB, free: 8.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.4189, allocations: 12.03 kB / 490.4 MB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.208e-05/0.4189, allocations: 20.66 kB / 490.4 MB, free: 8.547 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.4193, allocations: 274.8 kB / 490.7 MB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.4194, allocations: 4.375 kB / 490.7 MB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.4194, allocations: 8.375 kB / 490.7 MB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003365/0.4197, allocations: 148.1 kB / 490.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.4198, allocations: 192 / 490.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.4198, allocations: 11.94 kB / 490.9 MB, free: 8.047 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.4198, allocations: 0 / 490.9 MB, free: 8.047 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.4199, allocations: 31.98 kB / 490.9 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004699/0.4204, allocations: 378.2 kB / 491.3 MB, free: 7.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/0.4206, allocations: 108.1 kB / 491.4 MB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.605e-05/0.4207, allocations: 46.56 kB / 491.4 MB, free: 7.402 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.4207, allocations: 4 kB / 491.4 MB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000136/0.4208, allocations: 83.31 kB / 491.5 MB, free: 7.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.4209, allocations: 0 / 491.5 MB, free: 7.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003146/0.4212, allocations: 137.6 kB / 491.7 MB, free: 7.164 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.608e-05/0.4213, allocations: 140.7 kB / 491.8 MB, free: 6.996 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.4215, allocations: 268.9 kB / 492.1 MB, free: 6.723 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.4216, allocations: 29.69 kB / 492.1 MB, free: 6.688 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.064e-05/0.4216, allocations: 116.1 kB / 492.2 MB, free: 6.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.4217, allocations: 15.81 kB / 492.2 MB, free: 6.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-06/0.4217, allocations: 0 / 492.2 MB, free: 6.555 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.4218, allocations: 330.8 kB / 492.5 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.073e-05/0.4219, allocations: 31.86 kB / 492.6 MB, free: 6.191 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.158e-05/0.422, allocations: 77.92 kB / 492.6 MB, free: 6.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.4221, allocations: 80.28 kB / 492.7 MB, free: 6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4221, allocations: 4.031 kB / 492.7 MB, free: 5.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001981/0.4223, allocations: 117.4 kB / 492.8 MB, free: 5.875 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.4223, allocations: 4 kB / 492.8 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4223, allocations: 0 / 492.8 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.4223, allocations: 4 kB / 492.8 MB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.179e-05/0.4224, allocations: 8 kB / 492.9 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.4224, allocations: 4 kB / 492.9 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.732e-05/0.4225, allocations: 11.98 kB / 492.9 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.4225, allocations: 8.125 kB / 492.9 MB, free: 5.836 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,shiftSample1.y,shiftSample1.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.0001295/0.4227, allocations: 145.7 kB / 493 MB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-05/0.4227, allocations: 57.52 kB / 493.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000227/0.423, allocations: 123.2 kB / 493.2 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.423, allocations: 4 kB / 493.2 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.423, allocations: 3.984 kB / 493.2 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.423, allocations: 0 / 493.2 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.4232, allocations: 241.6 kB / 493.4 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.4232, allocations: 0 / 493.4 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.39e-05/0.4233, allocations: 8 kB / 493.4 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.4233, allocations: 0 / 493.4 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.4233, allocations: 0 / 493.4 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.4233, allocations: 7.984 kB / 493.5 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.4233, allocations: 3.938 kB / 493.5 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.4235, allocations: 154.6 kB / 493.6 MB, free: 5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.4237, allocations: 116.8 kB / 493.7 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.4237, allocations: 8 kB / 493.7 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.583e-05/0.4238, allocations: 12.05 kB / 493.7 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.4238, allocations: 4.094 kB / 493.7 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.4238, allocations: 7.938 kB / 493.8 MB, free: 4.836 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000196/0.424, allocations: 192.5 kB / 493.9 MB, free: 4.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.424, allocations: 3.938 kB / 493.9 MB, free: 4.641 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002582/0.4243, allocations: 47.89 kB / 494 MB, free: 4.594 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,shiftSample1.y,sample1.y,shiftSample1.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.0008797/0.4252, allocations: 418.6 kB / 494.4 MB, free: 4.344 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002205/0.4254, allocations: 71.91 kB / 494.5 MB, free: 4.273 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4254, allocations: 3.938 kB / 494.5 MB, free: 4.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.273e-05/0.4255, allocations: 31.92 kB / 494.5 MB, free: 4.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003888/0.4259, allocations: 68.88 kB / 494.6 MB, free: 4.172 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005424/0.4265, allocations: 353 kB / 494.9 MB, free: 3.793 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.4268, allocations: 0.7244 MB / 495.6 MB, free: 3.043 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.993e-05/0.4269, allocations: 25.53 kB / 495.7 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.299e-05/0.4269, allocations: 23.44 kB / 495.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4269, allocations: 0 / 495.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of Templates: time 0.005244/0.4322, allocations: 2.384 MB / 498.1 MB, free: 0.6406 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches