Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 105.8 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.001126/0.001126, 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.759/1.759, 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.08913/0.08913, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.002798/0.002798, allocations: 82.31 kB / 394.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1604, allocations: 49.41 MB / 443.6 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.004415/0.1649, allocations: 1.899 MB / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.1669, allocations: 0.9946 MB / 446.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.1671, allocations: 4 kB / 446.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006709/0.1677, allocations: 151.5 kB / 446.6 MB, free: 13.41 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.0003253/0.1681, allocations: 119.5 kB / 446.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005675/0.1686, allocations: 167.5 kB / 446.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003296/0.169, allocations: 187.5 kB / 447.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.1691, allocations: 45.45 kB / 447.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.1693, allocations: 79.62 kB / 447.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.1694, allocations: 75.62 kB / 447.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.957e-05/0.1695, allocations: 12 kB / 447.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.1696, allocations: 55.97 kB / 447.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.811e-05/0.1697, allocations: 47.83 kB / 447.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.91e-05/0.1698, allocations: 75.48 kB / 447.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003797/0.1702, allocations: 211.2 kB / 447.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1702, allocations: 0 / 447.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1702, allocations: 0 / 447.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.1702, allocations: 0 / 447.7 MB, free: 12.36 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008515/0.1711, allocations: 0.5195 MB / 448.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.1711, allocations: 8.031 kB / 448.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.213e-05/0.1712, allocations: 16.75 kB / 448.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.1716, allocations: 274.7 kB / 448.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.1716, allocations: 8.375 kB / 448.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.1716, allocations: 8.125 kB / 448.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003746/0.172, allocations: 163.6 kB / 448.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.172, allocations: 3.938 kB / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.172, allocations: 0 / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.1721, allocations: 4 kB / 448.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.1722, allocations: 47.91 kB / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005847/0.1728, allocations: 442.6 kB / 449.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.173, allocations: 134.5 kB / 449.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.725e-05/0.1732, allocations: 55.42 kB / 449.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/0.1732, allocations: 4 kB / 449.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.1734, allocations: 93.03 kB / 449.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.1734, allocations: 0 / 449.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004085/0.1738, allocations: 153.6 kB / 449.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.1739, allocations: 166.2 kB / 449.7 MB, free: 10 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.1743, allocations: 261 kB / 450 MB, free: 9.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.1743, allocations: 37.69 kB / 450 MB, free: 9.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.968e-05/0.1744, allocations: 120.3 kB / 450.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.1744, allocations: 19.75 kB / 450.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.444e-05/0.1745, allocations: 33.7 kB / 450.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1747, allocations: 338.7 kB / 450.5 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.494e-05/0.1747, allocations: 23.98 kB / 450.5 MB, free: 9.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.1748, allocations: 74.86 kB / 450.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.175, allocations: 97.05 kB / 450.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.175, allocations: 0 / 450.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002246/0.1752, allocations: 125.3 kB / 450.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1753, allocations: 8 kB / 450.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1753, allocations: 8.094 kB / 450.8 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.1753, allocations: 4 kB / 450.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.454e-05/0.1754, allocations: 8.312 kB / 450.9 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.1754, allocations: 4 kB / 450.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.619e-05/0.1755, allocations: 23.83 kB / 450.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.1755, allocations: 4 kB / 450.9 MB, free: 8.75 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample.y,hold.y,hold.u,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001287/0.1756, allocations: 145.7 kB / 451 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.996e-05/0.1757, allocations: 73.48 kB / 451.1 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.024e-05/0.1758, allocations: 25.7 kB / 451.1 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1758, allocations: 3.984 kB / 451.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.1758, allocations: 4 kB / 451.1 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1758, allocations: 3.938 kB / 451.1 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.1761, allocations: 229.6 kB / 451.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1761, allocations: 0 / 451.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.531e-05/0.1761, allocations: 4 kB / 451.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.331e-06/0.1761, allocations: 7.984 kB / 451.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.1761, allocations: 0 / 451.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1761, allocations: 0 / 451.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1762, allocations: 8.031 kB / 451.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.1764, allocations: 175.2 kB / 451.6 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.1765, allocations: 108.9 kB / 451.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.1766, allocations: 4 kB / 451.7 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.318e-05/0.1766, allocations: 11.98 kB / 451.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.772e-05/0.1767, allocations: 11.94 kB / 451.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.1767, allocations: 4 kB / 451.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002008/0.1769, allocations: 196.5 kB / 451.9 MB, free: 7.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1769, allocations: 0 / 451.9 MB, free: 7.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.1772, allocations: 24 kB / 451.9 MB, free: 7.621 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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 (11): * Single equations (assignments): 9 * 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.001114/0.1783, allocations: 420.6 kB / 452.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002545/0.1786, allocations: 83.91 kB / 452.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1786, allocations: 0 / 452.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.243e-05/0.1787, allocations: 31.92 kB / 452.4 MB, free: 7.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/0.1792, allocations: 70.44 kB / 452.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006704/0.1798, allocations: 326.1 kB / 452.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.1802, allocations: 0.7244 MB / 453.5 MB, free: 5.918 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.981e-05/0.1803, allocations: 25.53 kB / 453.6 MB, free: 5.891 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.54e-05/0.1803, allocations: 27.44 kB / 453.6 MB, free: 5.863 MB / 334.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1803, allocations: 0 / 453.6 MB, free: 5.863 MB / 334.1 MB Notification: Performance of Templates: time 0.006316/0.1866, allocations: 2.542 MB / 456.1 MB, free: 3.32 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches