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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 177.1 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.581/1.581, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008656/0.0008655, allocations: 85.45 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.434e-05/1.437e-05, allocations: 0 / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3346/0.4458, allocations: 80.57 MB / 468 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.4461, allocations: 79.95 kB / 468.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01631/0.4624, allocations: 6.183 MB / 474.3 MB, free: 8.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4625, allocations: 0 / 474.3 MB, free: 8.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.41e-05/0.4625, allocations: 8 kB / 474.3 MB, free: 8.02 MB / 346.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.0006588/0.4632, allocations: 492.1 kB / 474.8 MB, free: 7.488 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.4632, allocations: 12.03 kB / 474.8 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.517e-05/0.4633, allocations: 23.72 kB / 474.8 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004512/0.4638, allocations: 294.4 kB / 475.1 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.007e-05/0.4638, allocations: 7.984 kB / 475.1 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.4639, allocations: 4.562 kB / 475.1 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001282/0.464, allocations: 39.98 kB / 475.2 MB, free: 7.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.4643, allocations: 162.2 kB / 475.3 MB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.4643, allocations: 3.938 kB / 475.3 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.4643, allocations: 7.938 kB / 475.3 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.4643, allocations: 4 kB / 475.3 MB, free: 6.867 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.4649, allocations: 459.1 kB / 475.8 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.4651, allocations: 126.7 kB / 475.9 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.052e-05/0.4652, allocations: 59.5 kB / 476 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.4652, allocations: 7.984 kB / 476 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001418/0.4653, allocations: 101.1 kB / 476.1 MB, free: 6.016 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.4654, allocations: 0 / 476.1 MB, free: 6.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002591/0.4656, allocations: 129.3 kB / 476.2 MB, free: 5.883 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.641e-05/0.4657, allocations: 191.8 kB / 476.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.466, allocations: 286.3 kB / 476.7 MB, free: 5.371 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.466, allocations: 29.7 kB / 476.7 MB, free: 5.336 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.132e-05/0.4661, allocations: 124.4 kB / 476.8 MB, free: 5.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.4662, allocations: 27.64 kB / 476.8 MB, free: 5.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.4662, allocations: 96 / 476.8 MB, free: 5.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.4663, allocations: 330.8 kB / 477.2 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.125e-05/0.4663, allocations: 27.92 kB / 477.2 MB, free: 4.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.318e-05/0.4664, allocations: 91.72 kB / 477.3 MB, free: 4.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.238e-05/0.4665, allocations: 35.92 kB / 477.3 MB, free: 4.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4665, allocations: 0 / 477.3 MB, free: 4.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001862/0.4667, allocations: 117.4 kB / 477.4 MB, free: 4.547 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.4667, allocations: 8 kB / 477.4 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4667, allocations: 0 / 477.4 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.4668, allocations: 16.03 kB / 477.5 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.4669, allocations: 20 kB / 477.5 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.4669, allocations: 7.984 kB / 477.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.029e-05/0.467, allocations: 7.906 kB / 477.5 MB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.467, allocations: 4 kB / 477.5 MB, free: 4.484 MB / 346.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.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete 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 9.272e-05/0.4671, allocations: 116.9 kB / 477.6 MB, free: 4.363 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.392e-05/0.4672, allocations: 69.41 kB / 477.7 MB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002068/0.4674, allocations: 119.5 kB / 477.8 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.4674, allocations: 7.953 kB / 477.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4675, allocations: 0 / 477.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4675, allocations: 0 / 477.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.4677, allocations: 234.2 kB / 478 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4677, allocations: 4 kB / 478 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.973e-05/0.4678, allocations: 15.98 kB / 478.1 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.4678, allocations: 4 kB / 478.1 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.4678, allocations: 0 / 478.1 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.4678, allocations: 0 / 478.1 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4679, allocations: 7.938 kB / 478.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.4681, allocations: 212.4 kB / 478.3 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.4683, allocations: 124.8 kB / 478.4 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.981e-05/0.4683, allocations: 15.94 kB / 478.4 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.53e-05/0.4684, allocations: 7.984 kB / 478.4 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.4685, allocations: 7.984 kB / 478.4 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.4685, allocations: 4 kB / 478.4 MB, free: 3.434 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002075/0.4687, allocations: 230 kB / 478.7 MB, free: 3.207 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4687, allocations: 0 / 478.7 MB, free: 3.207 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002933/0.469, allocations: 55.86 kB / 478.7 MB, free: 3.152 MB / 346.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.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0007858/0.4698, allocations: 370.7 kB / 479.1 MB, free: 2.871 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001935/0.47, allocations: 91.84 kB / 479.2 MB, free: 2.781 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.47, allocations: 0 / 479.2 MB, free: 2.781 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.75e-05/0.4701, allocations: 39.92 kB / 479.2 MB, free: 2.742 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.4704, allocations: 60.98 kB / 479.3 MB, free: 2.684 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000488/0.4709, allocations: 288.2 kB / 479.5 MB, free: 2.371 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.4712, allocations: 0.7516 MB / 480.3 MB, free: 1.594 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.424e-05/0.4713, allocations: 30.02 kB / 480.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.619e-05/0.4714, allocations: 27.42 kB / 480.3 MB, free: 1.535 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4714, allocations: 0 / 480.3 MB, free: 1.535 MB / 346.7 MB Notification: Performance of Templates: time 0.005734/0.4771, allocations: 2.665 MB / 483 MB, free: 14.89 MB / 362.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time