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.001624/0.001624, allocations: 104.3 kB / 16.45 MB, free: 6.441 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.001544/0.001544, allocations: 186.4 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.703/1.703, 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.08701/0.08701, allocations: 12.58 MB / 283.2 MB, free: 15.4 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.003803/0.003803, allocations: 93.52 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1328, allocations: 49.39 MB / 443.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.004793/0.1377, allocations: 1.895 MB / 445.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.1403, allocations: 1.069 MB / 446.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002663/0.1406, allocations: 7.938 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005009/0.1411, allocations: 67.66 kB / 446.6 MB, free: 13.43 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.0005154/0.1416, allocations: 103.5 kB / 446.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009671/0.1426, allocations: 223.4 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004241/0.1431, allocations: 179.5 kB / 447.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.1432, allocations: 45.47 kB / 447.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001803/0.1434, allocations: 79.62 kB / 447.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.1436, allocations: 83.62 kB / 447.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.1436, allocations: 8 kB / 447.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002031/0.1439, allocations: 67.94 kB / 447.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.144, allocations: 47.84 kB / 447.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.1441, allocations: 83.41 kB / 447.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.1445, allocations: 243.2 kB / 447.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1445, allocations: 0 / 447.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1446, allocations: 0 / 447.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.1446, allocations: 4 kB / 447.7 MB, free: 12.29 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.0009376/0.1455, allocations: 0.5312 MB / 448.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1456, allocations: 12.03 kB / 448.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.306e-05/0.1457, allocations: 20.66 kB / 448.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005067/0.1462, allocations: 295.5 kB / 448.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1462, allocations: 8.375 kB / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.606e-05/0.1462, allocations: 12.12 kB / 448.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004034/0.1466, allocations: 168.4 kB / 448.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.1467, allocations: 0 / 448.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.1467, allocations: 15.94 kB / 448.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1467, allocations: 0 / 448.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.1468, allocations: 35.97 kB / 448.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007573/0.1476, allocations: 474.4 kB / 449.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002934/0.1479, allocations: 142.5 kB / 449.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.1481, allocations: 71.34 kB / 449.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.1481, allocations: 0 / 449.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.1483, allocations: 97.03 kB / 449.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.014e-06/0.1483, allocations: 0 / 449.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005389/0.1489, allocations: 169.3 kB / 449.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001542/0.1491, allocations: 191.8 kB / 449.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004056/0.1495, allocations: 330.6 kB / 450.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.1495, allocations: 29.7 kB / 450.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1496, allocations: 132.3 kB / 450.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.1497, allocations: 19.88 kB / 450.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.1497, allocations: 42.08 kB / 450.5 MB, free: 9.219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.1499, allocations: 334.8 kB / 450.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.265e-05/0.15, allocations: 27.98 kB / 450.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.1501, allocations: 99.64 kB / 450.9 MB, free: 8.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.1503, allocations: 101 kB / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1503, allocations: 256 / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002809/0.1506, allocations: 141.3 kB / 451.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1507, allocations: 8 kB / 451.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1507, allocations: 0 / 451.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.1507, allocations: 7.984 kB / 451.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.1509, allocations: 16 kB / 451.2 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.1509, allocations: 4 kB / 451.2 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.151, allocations: 15.86 kB / 451.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.151, allocations: 8 kB / 451.2 MB, free: 8.41 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.0001595/0.1512, allocations: 153.9 kB / 451.4 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.1513, allocations: 77.34 kB / 451.5 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.357e-05/0.1514, allocations: 25.7 kB / 451.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1514, allocations: 4 kB / 451.5 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1514, allocations: 0 / 451.5 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1514, allocations: 3.938 kB / 451.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002849/0.1517, allocations: 245.5 kB / 451.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1517, allocations: 0 / 451.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.888e-05/0.1518, allocations: 15.98 kB / 451.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.1518, allocations: 4.062 kB / 451.7 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.1518, allocations: 8 kB / 451.8 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1518, allocations: 3.938 kB / 451.8 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1518, allocations: 4 kB / 451.8 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003312/0.1522, allocations: 175.4 kB / 451.9 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.1523, allocations: 116.8 kB / 452.1 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.1524, allocations: 8 kB / 452.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.831e-05/0.1524, allocations: 4 kB / 452.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.1525, allocations: 15.92 kB / 452.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.1525, allocations: 4.062 kB / 452.1 MB, free: 7.445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002617/0.1528, allocations: 245.9 kB / 452.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1528, allocations: 0 / 452.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1531, allocations: 35.94 kB / 452.4 MB, free: 7.172 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.001042/0.1542, allocations: 424.7 kB / 452.8 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002678/0.1545, allocations: 83.91 kB / 452.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1545, allocations: 0 / 452.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.1546, allocations: 39.91 kB / 452.9 MB, free: 6.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.155, allocations: 79.31 kB / 453 MB, free: 6.551 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007515/0.1558, allocations: 389.9 kB / 453.4 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.1562, allocations: 0.7437 MB / 454.1 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.1563, allocations: 25.55 kB / 454.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.1564, allocations: 23.44 kB / 454.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1564, allocations: 0 / 454.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of Templates: time 0.007683/0.1641, allocations: 2.933 MB / 457.1 MB, free: 2.375 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches