Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008922/0.0008922, 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.401/1.401, allocations: 205.4 MB / 222.9 MB, free: 8.93 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.0009304/0.0009305, allocations: 90.36 kB / 271.3 MB, free: 8.227 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.0827/0.0827, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004204/0.0004204, allocations: 12 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.118, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.00224/0.1203, allocations: 1.575 MB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.1218, allocations: 0.9837 MB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.1219, allocations: 11.94 kB / 445.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003091/0.1222, allocations: 55.8 kB / 445.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001905/0.1224, allocations: 71.72 kB / 445.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005867/0.123, allocations: 203.6 kB / 445.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001747/0.1232, allocations: 151.5 kB / 446 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.1233, allocations: 29.56 kB / 446 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.544e-05/0.1234, allocations: 71.62 kB / 446.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.864e-05/0.1235, allocations: 63.69 kB / 446.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.034e-05/0.1235, allocations: 4 kB / 446.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.1236, allocations: 47.97 kB / 446.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.816e-05/0.1237, allocations: 51.77 kB / 446.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.915e-05/0.1238, allocations: 97.19 kB / 446.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.124, allocations: 171.9 kB / 446.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.124, allocations: 0 / 446.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.124, allocations: 3.938 kB / 446.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.124, allocations: 4 kB / 446.5 MB, free: 12.52 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.000586/0.1246, allocations: 0.4963 MB / 447 MB, free: 11.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.1247, allocations: 8.031 kB / 447 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.255e-05/0.1247, allocations: 24.66 kB / 447.1 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.125, allocations: 291.5 kB / 447.3 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.125, allocations: 12.38 kB / 447.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.125, allocations: 8.125 kB / 447.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.1254, allocations: 172.4 kB / 447.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1254, allocations: 4 kB / 447.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.1254, allocations: 0 / 447.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1254, allocations: 4 kB / 447.5 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/0.1255, allocations: 39.92 kB / 447.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004677/0.126, allocations: 478.4 kB / 448.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.1262, allocations: 138.5 kB / 448.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.752e-05/0.1263, allocations: 63.36 kB / 448.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.1264, allocations: 4 kB / 448.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.1266, allocations: 93.09 kB / 448.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.693e-06/0.1266, allocations: 0 / 448.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003678/0.127, allocations: 165.2 kB / 448.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.1271, allocations: 191.9 kB / 448.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/0.1273, allocations: 330.7 kB / 449 MB, free: 9.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.1273, allocations: 26.08 kB / 449 MB, free: 9.695 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.81e-05/0.1274, allocations: 136.3 kB / 449.2 MB, free: 9.559 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.1274, allocations: 23.73 kB / 449.2 MB, free: 9.535 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.543e-06/0.1275, allocations: 4 kB / 449.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.878e-05/0.1275, allocations: 334.8 kB / 449.5 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.137e-05/0.1276, allocations: 27.92 kB / 449.6 MB, free: 9.168 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.319e-05/0.1277, allocations: 99.7 kB / 449.7 MB, free: 9.043 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.1278, allocations: 101.3 kB / 449.8 MB, free: 8.926 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1278, allocations: 0 / 449.8 MB, free: 8.926 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001965/0.128, allocations: 141.3 kB / 449.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.128, allocations: 4 kB / 449.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.1281, allocations: 0 / 449.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.1281, allocations: 4 kB / 449.9 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.1282, allocations: 19.98 kB / 449.9 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1282, allocations: 4 kB / 449.9 MB, free: 8.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.17e-05/0.1283, allocations: 19.77 kB / 449.9 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.1283, allocations: 8.156 kB / 449.9 MB, free: 8.723 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.0001056/0.1284, allocations: 157.5 kB / 450.1 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.848e-05/0.1285, allocations: 73.41 kB / 450.2 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.217e-05/0.1286, allocations: 29.7 kB / 450.2 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.1286, allocations: 0 / 450.2 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1286, allocations: 3.938 kB / 450.2 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1286, allocations: 7.938 kB / 450.2 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.1288, allocations: 245.6 kB / 450.5 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1288, allocations: 4.062 kB / 450.5 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.04e-05/0.1288, allocations: 12 kB / 450.5 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1288, allocations: 4 kB / 450.5 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.1289, allocations: 7.984 kB / 450.5 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1289, allocations: 7.984 kB / 450.5 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1289, allocations: 0 / 450.5 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.1291, allocations: 187.2 kB / 450.7 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-05/0.1292, allocations: 120.8 kB / 450.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.1292, allocations: 0 / 450.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.373e-05/0.1293, allocations: 8 kB / 450.8 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.1294, allocations: 11.98 kB / 450.8 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.1294, allocations: 11.98 kB / 450.8 MB, free: 7.738 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001838/0.1296, allocations: 241.9 kB / 451.1 MB, free: 7.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1296, allocations: 0 / 451.1 MB, free: 7.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002459/0.1298, allocations: 43.98 kB / 451.1 MB, free: 7.457 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.0008564/0.1307, allocations: 421.2 kB / 451.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002488/0.131, allocations: 83.83 kB / 451.6 MB, free: 6.953 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.131, allocations: 4 kB / 451.6 MB, free: 6.949 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.599e-05/0.131, allocations: 28.36 kB / 451.6 MB, free: 6.922 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.1314, allocations: 72.69 kB / 451.7 MB, free: 6.852 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005336/0.132, allocations: 443 kB / 452.1 MB, free: 6.383 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.1322, allocations: 0.7479 MB / 452.9 MB, free: 5.609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.642e-05/0.1322, allocations: 27.38 kB / 452.9 MB, free: 5.586 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1322, allocations: 0 / 452.9 MB, free: 5.586 MB / 298.7 MB Notification: Performance of Templates: time 0.004319/0.1366, allocations: 2.942 MB / 455.8 MB, free: 2.637 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches