Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001218/0.001218, allocations: 94.81 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.674/1.674, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003319, allocations: 8 kB / 307.7 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1509, allocations: 51.52 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00287/0.1539, allocations: 1.607 MB / 360.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1561, allocations: 1.173 MB / 362 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.1563, allocations: 0 / 362 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006465/0.1569, allocations: 135.6 kB / 362.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004043/0.1573, allocations: 139.6 kB / 362.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.1578, allocations: 143.4 kB / 362.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002461/0.1581, allocations: 199.4 kB / 362.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.1582, allocations: 33.52 kB / 362.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.1584, allocations: 63.7 kB / 362.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.1585, allocations: 63.64 kB / 362.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.1585, allocations: 4 kB / 362.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.1586, allocations: 43.97 kB / 362.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.43e-05/0.1587, allocations: 43.83 kB / 362.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1588, allocations: 93.12 kB / 363 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.1591, allocations: 203.5 kB / 363.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1591, allocations: 4 kB / 363.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1591, allocations: 0 / 363.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1592, allocations: 3.938 kB / 363.2 MB, free: 9.324 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.0008146/0.16, allocations: 484.3 kB / 363.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.16, allocations: 11.97 kB / 363.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.168e-05/0.1601, allocations: 20.66 kB / 363.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.1605, allocations: 274.8 kB / 364 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.1605, allocations: 4.375 kB / 364 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.1605, allocations: 12.12 kB / 364 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003534/0.1609, allocations: 142.7 kB / 364.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.1609, allocations: 4 kB / 364.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.1609, allocations: 3.984 kB / 364.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.1609, allocations: 4 kB / 364.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.161, allocations: 31.92 kB / 364.2 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005258/0.1616, allocations: 362.4 kB / 364.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.1618, allocations: 107.9 kB / 364.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.398e-05/0.1619, allocations: 50.5 kB / 364.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.162, allocations: 4 kB / 364.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001756/0.1621, allocations: 71.38 kB / 364.7 MB, free: 7.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.1622, allocations: 0 / 364.7 MB, free: 7.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003799/0.1625, allocations: 149.3 kB / 364.9 MB, free: 7.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/0.1626, allocations: 132.8 kB / 365 MB, free: 7.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.1629, allocations: 276.9 kB / 365.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.163, allocations: 25.7 kB / 365.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.337e-05/0.163, allocations: 116.1 kB / 365.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.1631, allocations: 23.73 kB / 365.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.1631, allocations: 13.72 kB / 365.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1633, allocations: 334.8 kB / 365.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.301e-05/0.1633, allocations: 23.94 kB / 365.8 MB, free: 6.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.597e-05/0.1634, allocations: 69.98 kB / 365.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.1636, allocations: 80.27 kB / 366 MB, free: 6.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1636, allocations: 0 / 366 MB, free: 6.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001987/0.1638, allocations: 113.4 kB / 366.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.1638, allocations: 8 kB / 366.1 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1638, allocations: 0 / 366.1 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1639, allocations: 4 kB / 366.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.543e-05/0.1639, allocations: 15.92 kB / 366.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.164, allocations: 4 kB / 366.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.194e-05/0.164, allocations: 12.06 kB / 366.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1641, allocations: 8 kB / 366.1 MB, free: 6.051 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.0001613/0.1642, allocations: 145.8 kB / 366.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.002e-05/0.1643, allocations: 69.34 kB / 366.3 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.05e-05/0.1644, allocations: 21.7 kB / 366.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1644, allocations: 0 / 366.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1644, allocations: 3.938 kB / 366.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.1644, allocations: 7.938 kB / 366.4 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.1647, allocations: 233.6 kB / 366.6 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1647, allocations: 0 / 366.6 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-05/0.1648, allocations: 4 kB / 366.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1648, allocations: 4 kB / 366.6 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.1648, allocations: 0 / 366.6 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.1648, allocations: 4.312 kB / 366.6 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1648, allocations: 3.938 kB / 366.6 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.1651, allocations: 170.4 kB / 366.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.1e-05/0.1652, allocations: 108.9 kB / 366.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.1652, allocations: 3.984 kB / 366.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.199e-05/0.1653, allocations: 4 kB / 366.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.735e-05/0.1653, allocations: 8 kB / 366.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.1654, allocations: 11.92 kB / 366.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.1656, allocations: 200.4 kB / 367.1 MB, free: 4.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1656, allocations: 0 / 367.1 MB, free: 4.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.1659, allocations: 32 kB / 367.1 MB, free: 4.926 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.001/0.1669, allocations: 409.2 kB / 367.5 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002217/0.1671, allocations: 71.91 kB / 367.6 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1671, allocations: 0 / 367.6 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.258e-05/0.1672, allocations: 31.92 kB / 367.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.1677, allocations: 65.58 kB / 367.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00061/0.1683, allocations: 367.9 kB / 368.1 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.1686, allocations: 0.7283 MB / 368.8 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.664e-05/0.1687, allocations: 25.53 kB / 368.8 MB, free: 3.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.433e-05/0.1688, allocations: 19.44 kB / 368.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1688, allocations: 0 / 368.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of Templates: time 0.006476/0.1752, allocations: 2.346 MB / 371.2 MB, free: 0.9844 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches