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.001595/0.001595, allocations: 105 kB / 16.45 MB, free: 6.391 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.00148/0.00148, allocations: 189 kB / 17.39 MB, free: 5.648 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.678/1.678, allocations: 205.1 MB / 223.3 MB, free: 12.2 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.08054/0.08054, allocations: 12.59 MB / 283.2 MB, free: 15.38 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.002822/0.002823, allocations: 86.02 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1487, allocations: 49.41 MB / 443.6 MB, free: 488 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003528/0.1522, allocations: 1.879 MB / 445.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1541, allocations: 0.9791 MB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.1543, allocations: 0 / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000671/0.1549, allocations: 155.5 kB / 446.6 MB, free: 13.44 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.0003159/0.1553, allocations: 119.5 kB / 446.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.1558, allocations: 175.5 kB / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002641/0.1561, allocations: 175.5 kB / 447 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.1562, allocations: 33.52 kB / 447.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.1563, allocations: 71.7 kB / 447.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.1565, allocations: 79.62 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.1565, allocations: 8 kB / 447.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.1567, allocations: 63.89 kB / 447.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.899e-05/0.1568, allocations: 35.91 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.004e-05/0.1569, allocations: 67.55 kB / 447.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003363/0.1572, allocations: 203.3 kB / 447.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1572, allocations: 3.938 kB / 447.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1572, allocations: 0 / 447.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.1572, allocations: 0 / 447.6 MB, free: 12.43 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.0009568/0.1582, allocations: 0.5041 MB / 448.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1582, allocations: 8.031 kB / 448.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.812e-05/0.1583, allocations: 28.66 kB / 448.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.1587, allocations: 266.8 kB / 448.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.1587, allocations: 8.375 kB / 448.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.1587, allocations: 12.06 kB / 448.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003542/0.1591, allocations: 142.7 kB / 448.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.1591, allocations: 4 kB / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.1592, allocations: 0 / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.1592, allocations: 0 / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.1593, allocations: 43.89 kB / 448.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005382/0.1598, allocations: 366.3 kB / 449 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002372/0.1601, allocations: 103.9 kB / 449.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.492e-05/0.1602, allocations: 50.56 kB / 449.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.1602, allocations: 0 / 449.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001667/0.1604, allocations: 71.33 kB / 449.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.1604, allocations: 0 / 449.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003822/0.1608, allocations: 145.4 kB / 449.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.1609, allocations: 132.5 kB / 449.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.1612, allocations: 265 kB / 449.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.1612, allocations: 25.7 kB / 449.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.167e-05/0.1613, allocations: 120 kB / 449.8 MB, free: 9.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.302e-05/0.1614, allocations: 15.8 kB / 449.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.719e-05/0.1614, allocations: 33.95 kB / 449.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.1616, allocations: 334.8 kB / 450.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.909e-05/0.1617, allocations: 23.92 kB / 450.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.1618, allocations: 66 kB / 450.3 MB, free: 9.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.162, allocations: 84.19 kB / 450.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.162, allocations: 0 / 450.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002146/0.1622, allocations: 121.6 kB / 450.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1622, allocations: 4 kB / 450.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1622, allocations: 4.125 kB / 450.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.1623, allocations: 4 kB / 450.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.543e-05/0.1624, allocations: 8 kB / 450.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.1624, allocations: 4 kB / 450.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.339e-05/0.1625, allocations: 19.77 kB / 450.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.108e-06/0.1625, allocations: 7.938 kB / 450.6 MB, free: 9.113 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.000115/0.1626, allocations: 137.8 kB / 450.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.893e-05/0.1627, allocations: 57.45 kB / 450.8 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.148e-05/0.1628, allocations: 29.77 kB / 450.8 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1628, allocations: 4 kB / 450.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1628, allocations: 0 / 450.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1628, allocations: 3.938 kB / 450.8 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.163, allocations: 221.7 kB / 451 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.163, allocations: 7.984 kB / 451 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.538e-05/0.163, allocations: 4 kB / 451 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.163, allocations: 0 / 451 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.1631, allocations: 4 kB / 451 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.1631, allocations: 0 / 451 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1631, allocations: 4 kB / 451 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.1633, allocations: 162.4 kB / 451.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.311e-05/0.1634, allocations: 104.9 kB / 451.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.903e-05/0.1635, allocations: 0 / 451.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.247e-05/0.1635, allocations: 7.984 kB / 451.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.1636, allocations: 8 kB / 451.3 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.1636, allocations: 11.94 kB / 451.3 MB, free: 8.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.1638, allocations: 192.5 kB / 451.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1638, allocations: 0 / 451.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000255/0.1641, allocations: 32 kB / 451.5 MB, free: 8.035 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.0009504/0.165, allocations: 420.5 kB / 451.9 MB, free: 7.613 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002246/0.1653, allocations: 72.09 kB / 452 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1653, allocations: 0 / 452 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.851e-05/0.1654, allocations: 27.94 kB / 452 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.1658, allocations: 70.53 kB / 452.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000564/0.1664, allocations: 300.8 kB / 452.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.1667, allocations: 0.7283 MB / 453.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.471e-05/0.1668, allocations: 21.53 kB / 453.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.202e-05/0.1669, allocations: 23.42 kB / 453.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1669, allocations: 0 / 453.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of Templates: time 0.006251/0.1732, allocations: 2.465 MB / 455.6 MB, free: 3.859 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