Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.001228/0.001228, allocations: 102.8 kB / 16.45 MB, free: 6.438 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.001179/0.001179, allocations: 189.5 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.775/1.775, allocations: 205.1 MB / 223.3 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0872/0.0872, allocations: 12.58 MB / 283.2 MB, free: 15.41 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002776/0.002776, allocations: 90.34 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1426, allocations: 49.4 MB / 443.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003672/0.1464, allocations: 1.887 MB / 445.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1482, allocations: 0.979 MB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.1484, allocations: 4 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007292/0.1491, allocations: 159.5 kB / 446.6 MB, free: 13.45 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003336/0.1495, allocations: 111.6 kB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.15, allocations: 171.5 kB / 446.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002578/0.1503, allocations: 179.6 kB / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.1505, allocations: 33.53 kB / 447.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.1506, allocations: 75.62 kB / 447.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.1507, allocations: 79.62 kB / 447.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/0.1507, allocations: 8 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001599/0.1509, allocations: 55.97 kB / 447.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.195e-05/0.151, allocations: 43.83 kB / 447.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.231e-05/0.1511, allocations: 71.55 kB / 447.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.1514, allocations: 199.3 kB / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1515, allocations: 0 / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1515, allocations: 4 kB / 447.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1515, allocations: 0 / 447.6 MB, free: 12.44 MB / 334.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.0008522/0.1523, allocations: 0.504 MB / 448.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.1524, allocations: 8.031 kB / 448.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.517e-05/0.1525, allocations: 20.66 kB / 448.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.1528, allocations: 270.8 kB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.1528, allocations: 384 / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.217e-05/0.1529, allocations: 16.12 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.1532, allocations: 146.7 kB / 448.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1532, allocations: 4 kB / 448.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.1533, allocations: 7.922 kB / 448.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1533, allocations: 4 kB / 448.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.1534, allocations: 27.98 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005702/0.154, allocations: 366.3 kB / 448.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.1542, allocations: 111.9 kB / 449.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.221e-05/0.1543, allocations: 38.56 kB / 449.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.1544, allocations: 8.062 kB / 449.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.1546, allocations: 75.33 kB / 449.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.1546, allocations: 0 / 449.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003991/0.155, allocations: 141.4 kB / 449.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.1551, allocations: 136.5 kB / 449.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003042/0.1554, allocations: 257 kB / 449.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.1555, allocations: 33.7 kB / 449.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1556, allocations: 116 kB / 449.8 MB, free: 9.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.1556, allocations: 19.75 kB / 449.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.339e-05/0.1557, allocations: 33.95 kB / 449.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1559, allocations: 330.8 kB / 450.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.263e-05/0.1559, allocations: 19.98 kB / 450.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.1561, allocations: 73.88 kB / 450.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.1562, allocations: 80.25 kB / 450.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1562, allocations: 3.938 kB / 450.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002233/0.1564, allocations: 113.4 kB / 450.5 MB, free: 9.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1565, allocations: 8 kB / 450.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1565, allocations: 4.125 kB / 450.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.1565, allocations: 0 / 450.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.729e-05/0.1566, allocations: 12 kB / 450.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.1566, allocations: 3.984 kB / 450.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.09e-05/0.1567, allocations: 20.09 kB / 450.6 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.1567, allocations: 4 kB / 450.6 MB, free: 9.137 MB / 334.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,sample.u,shiftSample1.y,shiftSample1.u,sample.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.000165/0.1569, allocations: 149.8 kB / 450.7 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.954e-05/0.157, allocations: 61.55 kB / 450.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.576e-05/0.1571, allocations: 25.7 kB / 450.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1571, allocations: 0 / 450.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.1571, allocations: 4 kB / 450.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.1571, allocations: 3.938 kB / 450.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.1574, allocations: 221.6 kB / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1574, allocations: 0 / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.619e-05/0.1574, allocations: 7.938 kB / 451 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1574, allocations: 4 kB / 451 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.1574, allocations: 0 / 451 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1575, allocations: 0 / 451 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1575, allocations: 8.031 kB / 451 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003234/0.1578, allocations: 158.4 kB / 451.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.1579, allocations: 100.9 kB / 451.3 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.158, allocations: 8 kB / 451.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.674e-05/0.158, allocations: 7.984 kB / 451.3 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.1581, allocations: 8 kB / 451.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.1581, allocations: 3.938 kB / 451.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000217/0.1583, allocations: 196.5 kB / 451.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1584, allocations: 0 / 451.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.1586, allocations: 32.09 kB / 451.5 MB, free: 8.051 MB / 334.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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.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.001156/0.1598, allocations: 412.5 kB / 451.9 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002839/0.1601, allocations: 75.97 kB / 452 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1601, allocations: 0 / 452 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.888e-05/0.1602, allocations: 23.98 kB / 452 MB, free: 7.539 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004791/0.1607, allocations: 78.14 kB / 452.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007236/0.1614, allocations: 296.8 kB / 452.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005558/0.162, allocations: 0.7322 MB / 453.1 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.649e-05/0.1621, allocations: 29.77 kB / 453.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/0.1621, allocations: 15.44 kB / 453.2 MB, free: 6.34 MB / 334.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1621, allocations: 0 / 453.2 MB, free: 6.34 MB / 334.1 MB Notification: Performance of Templates: time 0.006921/0.1691, allocations: 2.504 MB / 455.7 MB, free: 3.836 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches