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.001323/0.001324, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001223/0.001223, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.428/1.428, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 55.11 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1183, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003347/0.1217, allocations: 1.891 MB / 353.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.1235, allocations: 1.145 MB / 354.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1237, allocations: 7.938 kB / 354.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003424/0.124, allocations: 67.66 kB / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.1243, allocations: 91.59 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006969/0.125, allocations: 268.9 kB / 355 MB, free: 212 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002336/0.1253, allocations: 179.5 kB / 355.1 MB, free: 32 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.1254, allocations: 29.55 kB / 355.2 MB, free: 4 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.1255, allocations: 79.62 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.1256, allocations: 79.69 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.247e-05/0.1257, allocations: 8 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1258, allocations: 59.95 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.425e-05/0.1259, allocations: 59.77 kB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.17e-05/0.126, allocations: 75.42 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003162/0.1263, allocations: 251.2 kB / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1263, allocations: 0 / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1263, allocations: 0 / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1263, allocations: 3.938 kB / 355.8 MB, free: 15.4 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.0006845/0.127, allocations: 0.5428 MB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1271, allocations: 11.89 kB / 356.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.189e-05/0.1271, allocations: 24.66 kB / 356.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.1276, allocations: 283.6 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.1276, allocations: 8.375 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.764e-05/0.1276, allocations: 8.125 kB / 356.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003401/0.1279, allocations: 187.2 kB / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.128, allocations: 0 / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.128, allocations: 0 / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.128, allocations: 4 kB / 356.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.1281, allocations: 47.91 kB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005564/0.1287, allocations: 474.5 kB / 357.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.129, allocations: 142.5 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.599e-05/0.1291, allocations: 55.42 kB / 357.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.1291, allocations: 8 kB / 357.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.1293, allocations: 97.02 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.1293, allocations: 0 / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004068/0.1297, allocations: 173.2 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.1298, allocations: 184.3 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003201/0.1301, allocations: 334.6 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.1302, allocations: 29.7 kB / 358.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.456e-05/0.1303, allocations: 120.4 kB / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.1303, allocations: 23.73 kB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.1304, allocations: 33.7 kB / 358.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1305, allocations: 338.8 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.521e-05/0.1306, allocations: 27.98 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.1307, allocations: 95.64 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.1309, allocations: 101.3 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1309, allocations: 8 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002373/0.1311, allocations: 133.3 kB / 359.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1312, allocations: 4 kB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.1312, allocations: 8.156 kB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.1312, allocations: 0 / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.1313, allocations: 27.92 kB / 359.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.1313, allocations: 0 / 359.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.114e-05/0.1314, allocations: 11.92 kB / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.1314, allocations: 8 kB / 359.3 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 ($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.0001246/0.1316, allocations: 154.3 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.823e-05/0.1317, allocations: 81.38 kB / 359.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.301e-05/0.1317, allocations: 29.7 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1317, allocations: 3.938 kB / 359.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1317, allocations: 7.938 kB / 359.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1318, allocations: 3.938 kB / 359.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/0.132, allocations: 249.5 kB / 359.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.132, allocations: 4 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.056e-05/0.1321, allocations: 15.94 kB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1321, allocations: 0 / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.1321, allocations: 11.98 kB / 359.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1321, allocations: 0 / 359.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1321, allocations: 4.031 kB / 359.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.1324, allocations: 179.3 kB / 360 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.1325, allocations: 108.9 kB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.1326, allocations: 8 kB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.569e-05/0.1327, allocations: 4 kB / 360.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/0.1327, allocations: 23.92 kB / 360.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.1327, allocations: 8 kB / 360.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002181/0.133, allocations: 249.9 kB / 360.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.133, allocations: 0 / 360.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.1332, allocations: 35.91 kB / 360.4 MB, free: 10.25 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.0009225/0.1342, allocations: 423.4 kB / 360.8 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002444/0.1344, allocations: 83.84 kB / 360.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1344, allocations: 0 / 360.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.079e-05/0.1345, allocations: 39.97 kB / 361 MB, free: 9.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.1349, allocations: 84.02 kB / 361 MB, free: 9.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005988/0.1355, allocations: 374.6 kB / 361.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.1359, allocations: 0.7398 MB / 362.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.844e-05/0.1359, allocations: 29.53 kB / 362.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.136, allocations: 27.38 kB / 362.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.136, allocations: 0 / 362.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of Templates: time 0.00626/0.1423, allocations: 2.919 MB / 365.1 MB, free: 5.676 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 gbode -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