Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.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.001512/0.001512, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001732/0.001732, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 38.66 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1369, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004924/0.1419, allocations: 1.893 MB / 353.4 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002599/0.1445, allocations: 1.145 MB / 354.5 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.1448, allocations: 8 kB / 354.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004134/0.1452, allocations: 67.67 kB / 354.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004103/0.1456, allocations: 91.58 kB / 354.7 MB, free: 492 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.1467, allocations: 266 kB / 355 MB, free: 232 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.1471, allocations: 179.5 kB / 355.1 MB, free: 52 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1473, allocations: 37.52 kB / 355.2 MB, free: 16 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.1474, allocations: 71.7 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.1476, allocations: 79.69 kB / 355.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.463e-05/0.1477, allocations: 8 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002426/0.1479, allocations: 71.88 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.148, allocations: 47.84 kB / 355.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.1481, allocations: 87.41 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004866/0.1486, allocations: 243.1 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.1487, allocations: 0 / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1487, allocations: 0 / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.1487, allocations: 4 kB / 355.8 MB, free: 15.41 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.001117/0.1498, allocations: 0.5311 MB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.1499, allocations: 11.89 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.938e-05/0.15, allocations: 24.66 kB / 356.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/0.1506, allocations: 295.5 kB / 356.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.1506, allocations: 8.375 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.1506, allocations: 12.12 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.1511, allocations: 180.3 kB / 356.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.1511, allocations: 0 / 356.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.1511, allocations: 3.938 kB / 356.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.1511, allocations: 4 kB / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001567/0.1513, allocations: 51.83 kB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007633/0.1521, allocations: 466.6 kB / 357.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.1524, allocations: 142.5 kB / 357.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.1525, allocations: 59.36 kB / 357.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.1526, allocations: 7.984 kB / 357.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.1528, allocations: 101.2 kB / 357.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.1528, allocations: 0 / 357.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004596/0.1533, allocations: 169.2 kB / 357.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.1534, allocations: 187.9 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003966/0.1538, allocations: 331 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.1539, allocations: 33.7 kB / 358.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.154, allocations: 128.4 kB / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.1541, allocations: 19.75 kB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.541e-05/0.1541, allocations: 37.7 kB / 358.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.1543, allocations: 334.8 kB / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.949e-05/0.1544, allocations: 27.98 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.1546, allocations: 91.72 kB / 359 MB, free: 11.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.1548, allocations: 101.1 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1548, allocations: 0 / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000261/0.155, allocations: 137.2 kB / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1551, allocations: 8 kB / 359.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1551, allocations: 0 / 359.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1551, allocations: 0 / 359.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.1552, allocations: 23.98 kB / 359.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.1553, allocations: 0 / 359.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.527e-05/0.1554, allocations: 16.08 kB / 359.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.1554, allocations: 12 kB / 359.3 MB, free: 11.53 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.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.000183/0.1556, allocations: 162.5 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.746e-05/0.1557, allocations: 73.41 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.24e-05/0.1557, allocations: 29.64 kB / 359.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.1558, allocations: 4 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1558, allocations: 3.938 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.1558, allocations: 12.03 kB / 359.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.156, allocations: 249.4 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1561, allocations: 0 / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.044e-05/0.1561, allocations: 12 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.404e-05/0.1562, allocations: 3.984 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.1562, allocations: 8 kB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1562, allocations: 0 / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1562, allocations: 7.938 kB / 359.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.1565, allocations: 183.3 kB / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.1566, allocations: 108.9 kB / 360.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.1567, allocations: 8 kB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.82e-05/0.1568, allocations: 4 kB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/0.1568, allocations: 19.86 kB / 360.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.1569, allocations: 4 kB / 360.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002587/0.1571, allocations: 249.9 kB / 360.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1571, allocations: 0 / 360.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.1574, allocations: 35.91 kB / 360.4 MB, free: 10.27 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,hold1.y,hold1.u,shiftSample1.y,sample1.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 (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.001107/0.1585, allocations: 431.8 kB / 360.8 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002409/0.1588, allocations: 79.84 kB / 360.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1588, allocations: 4.312 kB / 360.9 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.67e-05/0.1589, allocations: 43.91 kB / 361 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.1593, allocations: 64.42 kB / 361 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006611/0.16, allocations: 374 kB / 361.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.1604, allocations: 0.7517 MB / 362.1 MB, free: 8.629 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.528e-05/0.1605, allocations: 25.53 kB / 362.2 MB, free: 8.602 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.562e-05/0.1606, allocations: 23.44 kB / 362.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1606, allocations: 0 / 362.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of Templates: time 0.007336/0.1679, allocations: 2.927 MB / 365.1 MB, free: 5.688 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches