Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009164/0.0009166, allocations: 88.17 kB / 15.75 MB, free: 408 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008835/0.0008835, allocations: 177.5 kB / 16.63 MB, free: 6.895 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.923/1.923, allocations: 205.4 MB / 222.8 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1271/0.1271, allocations: 12.59 MB / 283.7 MB, free: 8.699 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.0008712/0.0008716, allocations: 20 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1431, allocations: 50.38 MB / 394.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.003022/0.1462, allocations: 1.572 MB / 396.5 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.1488, allocations: 1.003 MB / 397.5 MB, free: 204 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000332/0.1492, allocations: 4 kB / 397.5 MB, free: 200 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005133/0.1497, allocations: 63.8 kB / 397.6 MB, free: 136 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004717/0.1502, allocations: 71.7 kB / 397.6 MB, free: 64 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.1514, allocations: 203.6 kB / 397.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004101/0.1518, allocations: 147.5 kB / 398 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.152, allocations: 33.55 kB / 398 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.1522, allocations: 59.7 kB / 398.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.1524, allocations: 67.69 kB / 398.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.1524, allocations: 11.92 kB / 398.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.1527, allocations: 47.92 kB / 398.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.1528, allocations: 43.83 kB / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.153, allocations: 53.64 kB / 398.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004809/0.1535, allocations: 175.9 kB / 398.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.22e-05/0.1535, allocations: 3.938 kB / 398.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.3e-06/0.1535, allocations: 0 / 398.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.1535, allocations: 3.938 kB / 398.5 MB, free: 15.22 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001399/0.1549, allocations: 0.5038 MB / 399 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.817e-05/0.155, allocations: 8.031 kB / 399 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.1552, allocations: 23.72 kB / 399 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007014/0.1559, allocations: 278.4 kB / 399.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.1559, allocations: 4 kB / 399.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.156, allocations: 19.94 kB / 399.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005707/0.1565, allocations: 172.3 kB / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.1566, allocations: 0 / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.1566, allocations: 8 kB / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1566, allocations: 3.984 kB / 399.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.1568, allocations: 39.92 kB / 399.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009809/0.1578, allocations: 482.4 kB / 400 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.1581, allocations: 130.5 kB / 400.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.1583, allocations: 63.41 kB / 400.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.842e-05/0.1583, allocations: 4 kB / 400.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003144/0.1587, allocations: 97.09 kB / 400.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 4.248e-06/0.1587, allocations: 4 kB / 400.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004882/0.1592, allocations: 169.2 kB / 400.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.1593, allocations: 191.9 kB / 400.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004091/0.1597, allocations: 326.7 kB / 400.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.1598, allocations: 29.7 kB / 401 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.1599, allocations: 124.8 kB / 401.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.524e-05/0.1599, allocations: 27.73 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.16, allocations: 0 / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1601, allocations: 330.8 kB / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.715e-05/0.1602, allocations: 27.92 kB / 401.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.1603, allocations: 95.7 kB / 401.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.283e-05/0.1604, allocations: 35.98 kB / 401.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1605, allocations: 4 kB / 401.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002943/0.1608, allocations: 133.3 kB / 401.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.1608, allocations: 8.156 kB / 401.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1608, allocations: 3.984 kB / 401.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.1608, allocations: 4 kB / 401.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.161, allocations: 19.94 kB / 401.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/0.161, allocations: 11.94 kB / 401.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.1611, allocations: 8.219 kB / 401.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.1611, allocations: 8 kB / 401.8 MB, free: 11.52 MB / 302.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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001914/0.1613, allocations: 157.5 kB / 402 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.1615, allocations: 77.44 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.73e-05/0.1615, allocations: 29.7 kB / 402.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.1615, allocations: 3.938 kB / 402.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1616, allocations: 4 kB / 402.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001241/0.1617, allocations: 3.953 kB / 402.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.1621, allocations: 245.4 kB / 402.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.1621, allocations: 4 kB / 402.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.783e-05/0.1622, allocations: 19.92 kB / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.1622, allocations: 0 / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.1622, allocations: 8 kB / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.1622, allocations: 4.062 kB / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1623, allocations: 0 / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003378/0.1626, allocations: 179.3 kB / 402.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.1627, allocations: 120.8 kB / 402.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.1628, allocations: 4 kB / 402.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-05/0.1629, allocations: 7.984 kB / 402.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.472e-05/0.1629, allocations: 15.98 kB / 402.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.163, allocations: 7.938 kB / 402.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002894/0.1633, allocations: 237.9 kB / 402.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1633, allocations: 0 / 402.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003204/0.1636, allocations: 39.98 kB / 402.9 MB, free: 10.26 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001022/0.1646, allocations: 435.8 kB / 403.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002574/0.1649, allocations: 83.84 kB / 403.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1649, allocations: 0 / 403.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.157e-05/0.165, allocations: 31.98 kB / 403.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.1654, allocations: 77.11 kB / 403.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006995/0.1661, allocations: 413.7 kB / 404 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.1666, allocations: 0.744 MB / 404.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.1667, allocations: 25.55 kB / 404.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.167e-05/0.1667, allocations: 23.42 kB / 404.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1667, allocations: 0 / 404.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of Templates: time 0.008044/0.1748, allocations: 2.693 MB / 407.4 MB, free: 5.684 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time