Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 178.6 kB / 16.77 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.4 MB / 222.9 MB, free: 8.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008898/0.0008896, allocations: 94.3 kB / 271.3 MB, free: 8.223 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09022/0.09022, allocations: 12.6 MB / 332.2 MB, free: 11.22 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007152/0.0007154, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1373, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.002435/0.1398, allocations: 1.567 MB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.1413, allocations: 0.9175 MB / 445.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.1415, allocations: 8 kB / 445.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006528/0.1421, allocations: 131.6 kB / 445.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.1424, allocations: 95.69 kB / 445.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004776/0.1429, allocations: 151.7 kB / 445.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.1431, allocations: 171.4 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.1432, allocations: 37.53 kB / 446 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.22e-05/0.1433, allocations: 63.64 kB / 446.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.845e-05/0.1434, allocations: 67.69 kB / 446.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.196e-05/0.1435, allocations: 4 kB / 446.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.1436, allocations: 39.97 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.436e-05/0.1437, allocations: 39.84 kB / 446.2 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.202e-05/0.1437, allocations: 85.25 kB / 446.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001786/0.1439, allocations: 159.9 kB / 446.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1439, allocations: 0 / 446.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.144, allocations: 3.938 kB / 446.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.144, allocations: 0 / 446.5 MB, free: 12.57 MB / 298.7 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.0006386/0.1446, allocations: 488.3 kB / 447 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1447, allocations: 8.031 kB / 447 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.1447, allocations: 24.66 kB / 447 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.145, allocations: 266.8 kB / 447.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.145, allocations: 8.375 kB / 447.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.1451, allocations: 16.06 kB / 447.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003106/0.1454, allocations: 151.6 kB / 447.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1454, allocations: 4 kB / 447.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.1454, allocations: 8 kB / 447.4 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.1454, allocations: 0 / 447.4 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.411e-05/0.1455, allocations: 35.92 kB / 447.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004675/0.146, allocations: 458.4 kB / 447.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.1462, allocations: 130.5 kB / 448 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.332e-05/0.1463, allocations: 55.42 kB / 448.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.1464, allocations: 11.92 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.1466, allocations: 89.11 kB / 448.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.1466, allocations: 4 kB / 448.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003304/0.1469, allocations: 157.5 kB / 448.4 MB, free: 10.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.147, allocations: 158.2 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.1472, allocations: 268.8 kB / 448.8 MB, free: 9.973 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.1472, allocations: 29.7 kB / 448.8 MB, free: 9.938 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.801e-05/0.1473, allocations: 120.8 kB / 448.9 MB, free: 9.816 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.1473, allocations: 19.8 kB / 448.9 MB, free: 9.797 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-06/0.1473, allocations: 4 kB / 448.9 MB, free: 9.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.491e-05/0.1474, allocations: 330.8 kB / 449.3 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.675e-05/0.1475, allocations: 19.98 kB / 449.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.3e-05/0.1475, allocations: 82.86 kB / 449.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.1477, allocations: 93.17 kB / 449.5 MB, free: 9.227 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1477, allocations: 0 / 449.5 MB, free: 9.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001811/0.1479, allocations: 129.4 kB / 449.6 MB, free: 9.094 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.1479, allocations: 4.781 kB / 449.6 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.1479, allocations: 4 kB / 449.6 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1479, allocations: 0 / 449.6 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.112e-05/0.148, allocations: 19.92 kB / 449.6 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.148, allocations: 0 / 449.6 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.211e-05/0.1481, allocations: 23.78 kB / 449.6 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.1481, allocations: 4 kB / 449.6 MB, free: 9.039 MB / 298.7 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.0001087/0.1482, allocations: 150.6 kB / 449.8 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.625e-05/0.1483, allocations: 65.5 kB / 449.9 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.025e-05/0.1483, allocations: 29.69 kB / 449.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.1484, allocations: 7.875 kB / 449.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1484, allocations: 0 / 449.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.1484, allocations: 7.938 kB / 449.9 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.1486, allocations: 233.5 kB / 450.1 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1486, allocations: 4 kB / 450.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.417e-05/0.1486, allocations: 12 kB / 450.1 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1486, allocations: 0 / 450.1 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.1486, allocations: 7.984 kB / 450.1 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1486, allocations: 3.984 kB / 450.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1486, allocations: 4 kB / 450.2 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.1489, allocations: 175.3 kB / 450.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-05/0.1489, allocations: 112.9 kB / 450.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.149, allocations: 8 kB / 450.4 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.217e-05/0.149, allocations: 7.984 kB / 450.5 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.298e-05/0.1491, allocations: 11.94 kB / 450.5 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.1491, allocations: 4 kB / 450.5 MB, free: 8.102 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001639/0.1493, allocations: 192.5 kB / 450.7 MB, free: 7.914 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1493, allocations: 3.938 kB / 450.7 MB, free: 7.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002427/0.1496, allocations: 39.89 kB / 450.7 MB, free: 7.871 MB / 298.7 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.0009846/0.1505, allocations: 405.3 kB / 451.1 MB, free: 7.465 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002067/0.1508, allocations: 75.84 kB / 451.2 MB, free: 7.391 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1508, allocations: 0 / 451.2 MB, free: 7.391 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.663e-05/0.1509, allocations: 31.98 kB / 451.2 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.1513, allocations: 76.61 kB / 451.3 MB, free: 7.285 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005573/0.1518, allocations: 386.6 kB / 451.7 MB, free: 6.867 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.1521, allocations: 0.7322 MB / 452.4 MB, free: 6.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.537e-05/0.1521, allocations: 23.44 kB / 452.4 MB, free: 6.086 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1521, allocations: 0 / 452.4 MB, free: 6.086 MB / 298.7 MB Notification: Performance of Templates: time 0.004458/0.1566, allocations: 2.649 MB / 455.1 MB, free: 3.434 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches