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.001132/0.001132, allocations: 102.2 kB / 16.45 MB, free: 6.48 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.001281/0.001281, allocations: 185.5 kB / 17.38 MB, free: 5.691 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.539/1.539, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.08792/0.08792, 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.002249/0.002249, allocations: 91.48 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.139, allocations: 49.4 MB / 443.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.004955/0.144, allocations: 1.891 MB / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002425/0.1465, allocations: 0.9946 MB / 446.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003695/0.147, allocations: 4 kB / 446.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.1481, allocations: 163.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.0005786/0.1487, allocations: 107.6 kB / 446.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008927/0.1496, allocations: 167.5 kB / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.1501, allocations: 187.5 kB / 447.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.1504, allocations: 53.5 kB / 447.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.1506, allocations: 71.64 kB / 447.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.1508, allocations: 79.62 kB / 447.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.439e-05/0.1509, allocations: 12 kB / 447.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002524/0.1511, allocations: 55.95 kB / 447.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.1513, allocations: 43.84 kB / 447.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.1514, allocations: 71.48 kB / 447.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.152, allocations: 211.2 kB / 447.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.152, allocations: 0 / 447.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.358e-06/0.152, allocations: 4 kB / 447.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.809e-05/0.1521, 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.001207/0.1533, allocations: 0.5117 MB / 448.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.309e-05/0.1534, allocations: 15.97 kB / 448.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.399e-05/0.1535, allocations: 20.73 kB / 448.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004538/0.1539, allocations: 266.8 kB / 448.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.1539, allocations: 12.38 kB / 448.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.154, allocations: 12.11 kB / 448.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004524/0.1544, allocations: 167.5 kB / 448.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1545, allocations: 0 / 448.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.1545, allocations: 7.938 kB / 448.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1545, allocations: 0 / 448.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.1546, allocations: 43.91 kB / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000701/0.1553, allocations: 438.6 kB / 449.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.1556, allocations: 138.5 kB / 449.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.1558, allocations: 59.42 kB / 449.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.1558, allocations: 0 / 449.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.156, allocations: 93.03 kB / 449.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.156, allocations: 0 / 449.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004286/0.1565, allocations: 153.3 kB / 449.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1566, allocations: 170.1 kB / 449.7 MB, free: 9.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.1569, allocations: 261 kB / 450 MB, free: 9.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.157, allocations: 33.7 kB / 450 MB, free: 9.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.1571, allocations: 124.4 kB / 450.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.1571, allocations: 16.12 kB / 450.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.1572, allocations: 37.7 kB / 450.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1573, allocations: 330.8 kB / 450.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.832e-05/0.1574, allocations: 31.92 kB / 450.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.1576, allocations: 82.84 kB / 450.6 MB, free: 9.039 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.1577, allocations: 93.05 kB / 450.7 MB, free: 8.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1578, allocations: 0 / 450.7 MB, free: 8.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002354/0.158, allocations: 129.7 kB / 450.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.158, allocations: 4 kB / 450.8 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.158, allocations: 4 kB / 450.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.1581, allocations: 0 / 450.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1582, allocations: 12 kB / 450.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.1582, allocations: 4 kB / 450.9 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.583e-05/0.1583, allocations: 19.83 kB / 450.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.1583, allocations: 7.938 kB / 450.9 MB, free: 8.746 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.0001568/0.1585, allocations: 145.9 kB / 451 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.1586, allocations: 77.42 kB / 451.1 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.988e-05/0.1586, allocations: 21.72 kB / 451.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1587, allocations: 0 / 451.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1587, allocations: 0 / 451.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.1587, allocations: 11.92 kB / 451.1 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.1589, allocations: 217.6 kB / 451.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1589, allocations: 4 kB / 451.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.62e-05/0.159, allocations: 7.984 kB / 451.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.159, allocations: 64 / 451.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.159, allocations: 12 kB / 451.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.159, allocations: 0 / 451.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.159, allocations: 4 kB / 451.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.1593, allocations: 183.1 kB / 451.6 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.1595, allocations: 108.9 kB / 451.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.387e-05/0.1595, allocations: 4 kB / 451.7 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.827e-05/0.1596, allocations: 7.984 kB / 451.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.337e-05/0.1596, allocations: 11.94 kB / 451.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.1597, allocations: 7.984 kB / 451.7 MB, free: 7.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002066/0.1599, allocations: 188.5 kB / 451.9 MB, free: 7.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1599, allocations: 0 / 451.9 MB, free: 7.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.1602, allocations: 31.98 kB / 451.9 MB, free: 7.613 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.001089/0.1613, allocations: 424.7 kB / 452.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002571/0.1615, allocations: 79.91 kB / 452.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1616, allocations: 0 / 452.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.03e-05/0.1617, allocations: 31.92 kB / 452.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.1621, allocations: 67.2 kB / 452.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006526/0.1628, allocations: 329.5 kB / 452.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/0.1632, allocations: 0.728 MB / 453.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.925e-05/0.1632, allocations: 25.53 kB / 453.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.1633, allocations: 23.44 kB / 453.6 MB, free: 5.855 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1633, allocations: 0 / 453.6 MB, free: 5.855 MB / 334.1 MB Notification: Performance of Templates: time 0.006568/0.1699, allocations: 2.585 MB / 456.2 MB, free: 3.27 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