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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009547/0.0009546, allocations: 93.47 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 176.8 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004262/0.0004267, allocations: 12.66 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1508, allocations: 50.41 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003344/0.1542, allocations: 1.593 MB / 353.4 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.1562, allocations: 1.013 MB / 354.4 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.1564, allocations: 3.938 kB / 354.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000709/0.1571, allocations: 143.7 kB / 354.6 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003142/0.1575, allocations: 95.7 kB / 354.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006623/0.1581, allocations: 186.9 kB / 354.9 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.1585, allocations: 171.6 kB / 355 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.1586, allocations: 37.55 kB / 355.1 MB, free: 472 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.1588, allocations: 67.58 kB / 355.1 MB, free: 404 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.159, allocations: 63.64 kB / 355.2 MB, free: 340 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.216e-05/0.159, allocations: 4 kB / 355.2 MB, free: 336 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.1592, allocations: 39.97 kB / 355.2 MB, free: 296 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.132e-05/0.1593, allocations: 39.84 kB / 355.3 MB, free: 256 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.1594, allocations: 89.23 kB / 355.4 MB, free: 160 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.1597, allocations: 187.7 kB / 355.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.1597, allocations: 3.984 kB / 355.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1597, allocations: 4 kB / 355.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1597, allocations: 4 kB / 355.6 MB, free: 15.96 MB / 302.1 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.000896/0.1606, allocations: 484.3 kB / 356 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.1607, allocations: 12.03 kB / 356 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.224e-05/0.1608, allocations: 16.75 kB / 356.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004072/0.1612, allocations: 266.7 kB / 356.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.1612, allocations: 4.375 kB / 356.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.1613, allocations: 12.12 kB / 356.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.1617, allocations: 146.7 kB / 356.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.1617, allocations: 0 / 356.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.1617, allocations: 0 / 356.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.1617, allocations: 7.984 kB / 356.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.1619, allocations: 35.92 kB / 356.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006147/0.1625, allocations: 362.4 kB / 356.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/0.1627, allocations: 111.9 kB / 357 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.035e-05/0.1628, allocations: 46.56 kB / 357 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.1629, allocations: 3.984 kB / 357 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000183/0.163, allocations: 75.33 kB / 357.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.744e-06/0.1631, allocations: 0 / 357.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003815/0.1634, allocations: 141.4 kB / 357.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/0.1635, allocations: 132.5 kB / 357.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.1638, allocations: 268.9 kB / 357.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.1639, allocations: 25.7 kB / 357.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.942e-05/0.164, allocations: 116.4 kB / 357.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.164, allocations: 27.67 kB / 357.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/0.164, allocations: 17.72 kB / 357.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1642, allocations: 330.8 kB / 358.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.414e-05/0.1643, allocations: 23.98 kB / 358.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.558e-05/0.1644, allocations: 62 kB / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.1645, allocations: 80.5 kB / 358.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.1645, allocations: 4 kB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002099/0.1648, allocations: 117.4 kB / 358.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.1648, allocations: 8.125 kB / 358.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.1648, allocations: 4 kB / 358.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1648, allocations: 3.938 kB / 358.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.459e-05/0.1649, allocations: 15.98 kB / 358.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.1649, allocations: 3.938 kB / 358.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.86e-05/0.165, allocations: 7.938 kB / 358.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.165, allocations: 4 kB / 358.5 MB, free: 12.71 MB / 302.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001297/0.1652, allocations: 137.8 kB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.056e-05/0.1652, allocations: 73.34 kB / 358.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.775e-05/0.1653, allocations: 21.72 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1653, allocations: 3.984 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.1653, allocations: 4 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1653, allocations: 3.938 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.1656, allocations: 225.6 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1656, allocations: 0 / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.527e-05/0.1656, allocations: 4 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1656, allocations: 4 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.1656, allocations: 4.062 kB / 358.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.1656, allocations: 7.984 kB / 358.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1656, allocations: 0 / 358.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000224/0.1659, allocations: 150.5 kB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.655e-05/0.166, allocations: 116.8 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.166, allocations: 0 / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.199e-05/0.1661, allocations: 12 kB / 359.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.438e-05/0.1661, allocations: 7.984 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.1661, allocations: 11.88 kB / 359.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.1664, allocations: 196.5 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1664, allocations: 0 / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002621/0.1666, allocations: 28.09 kB / 359.5 MB, free: 11.61 MB / 302.1 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001024/0.1677, allocations: 430.5 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002162/0.1679, allocations: 67.92 kB / 359.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1679, allocations: 0 / 359.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.829e-05/0.168, allocations: 27.92 kB / 360 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.1684, allocations: 70.23 kB / 360 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005809/0.169, allocations: 348.4 kB / 360.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.1693, allocations: 0.7285 MB / 361.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.905e-05/0.1694, allocations: 21.55 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.1694, allocations: 15.44 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1694, allocations: 3.938 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Templates: time 0.005921/0.1754, allocations: 2.319 MB / 363.5 MB, free: 7.727 MB / 302.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches