Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001378/0.001378, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001623/0.001623, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 60.06 kB / 306.3 MB, free: 1.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1348, allocations: 50.54 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003965/0.1389, allocations: 1.977 MB / 358.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.1411, allocations: 1.282 MB / 360 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.1412, allocations: 4 kB / 360.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002996/0.1416, allocations: 67.73 kB / 360.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000288/0.1419, allocations: 115.6 kB / 360.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005951/0.1425, allocations: 203.1 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.1427, allocations: 175.5 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.1429, allocations: 37.53 kB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.143, allocations: 63.7 kB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.1431, allocations: 87.55 kB / 360.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.1431, allocations: 4 kB / 360.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.1433, allocations: 55.97 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.359e-05/0.1434, allocations: 47.83 kB / 360.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.711e-05/0.1435, allocations: 83.36 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003073/0.1438, allocations: 243.5 kB / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1438, allocations: 0 / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1438, allocations: 0 / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1438, allocations: 0 / 361.2 MB, free: 10.08 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.0008422/0.1447, allocations: 0.5467 MB / 361.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.1447, allocations: 8.031 kB / 361.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.486e-05/0.1448, allocations: 24.66 kB / 361.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.1451, allocations: 287.6 kB / 362.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.1451, allocations: 4.375 kB / 362.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.1452, allocations: 16.12 kB / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003564/0.1455, allocations: 170.8 kB / 362.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1455, allocations: 0 / 362.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.1456, allocations: 15.94 kB / 362.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1456, allocations: 3.938 kB / 362.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.1457, allocations: 35.98 kB / 362.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005671/0.1463, allocations: 486.4 kB / 362.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.1466, allocations: 138.5 kB / 362.9 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.1467, allocations: 67.36 kB / 363 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.1467, allocations: 4 kB / 363 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/0.1469, allocations: 93.03 kB / 363.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.193e-06/0.1469, allocations: 0 / 363.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004223/0.1473, allocations: 173.3 kB / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.1475, allocations: 191.8 kB / 363.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.1478, allocations: 342.9 kB / 363.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.1478, allocations: 25.7 kB / 363.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1479, allocations: 132.8 kB / 363.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.148, allocations: 23.75 kB / 364 MB, free: 7.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.455e-05/0.148, allocations: 33.7 kB / 364 MB, free: 6.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1481, allocations: 338.8 kB / 364.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.768e-05/0.1482, allocations: 27.98 kB / 364.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.1484, allocations: 87.72 kB / 364.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.1485, allocations: 105.2 kB / 364.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.1485, allocations: 4 kB / 364.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002476/0.1488, allocations: 137.3 kB / 364.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1488, allocations: 8 kB / 364.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.1488, allocations: 0 / 364.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1489, allocations: 4 kB / 364.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.149, allocations: 19.98 kB / 364.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.149, allocations: 0 / 364.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.206e-05/0.1491, allocations: 19.83 kB / 364.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.1491, allocations: 4 kB / 364.7 MB, free: 6.18 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.0001405/0.1492, allocations: 161.9 kB / 364.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.291e-05/0.1493, allocations: 77.34 kB / 365 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.761e-05/0.1494, allocations: 25.73 kB / 365 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1494, allocations: 4 kB / 365 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1494, allocations: 3.938 kB / 365 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1494, allocations: 7.938 kB / 365 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/0.1497, allocations: 245.6 kB / 365.2 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1497, allocations: 4 kB / 365.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.513e-05/0.1498, allocations: 24.05 kB / 365.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1498, allocations: 0 / 365.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.1498, allocations: 4 kB / 365.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1498, allocations: 0 / 365.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1498, allocations: 0 / 365.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002863/0.1501, allocations: 191.2 kB / 365.5 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.686e-05/0.1502, allocations: 116.8 kB / 365.6 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.1503, allocations: 4 kB / 365.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.643e-05/0.1503, allocations: 3.984 kB / 365.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.487e-05/0.1504, allocations: 19.98 kB / 365.6 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1504, allocations: 8 kB / 365.6 MB, free: 5.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002274/0.1507, allocations: 249.9 kB / 365.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1507, allocations: 0 / 365.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.151, allocations: 39.98 kB / 365.9 MB, free: 4.898 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.0009876/0.1519, allocations: 421.1 kB / 366.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002364/0.1522, allocations: 75.91 kB / 366.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1522, allocations: 0 / 366.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.653e-05/0.1523, allocations: 39.92 kB / 366.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.1528, allocations: 74.77 kB / 366.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006321/0.1534, allocations: 448.6 kB / 366.9 MB, free: 3.965 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.1537, allocations: 0.7479 MB / 367.7 MB, free: 3.191 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.88e-05/0.1538, allocations: 25.53 kB / 367.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.1539, allocations: 23.42 kB / 367.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1539, allocations: 0 / 367.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of Templates: time 0.006296/0.1602, allocations: 2.837 MB / 370.6 MB, free: 332 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches