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.001085/0.001085, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.001198/0.001199, allocations: 191 kB / 18 MB, free: 5.098 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.517/1.517, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 47.92 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.444/0.4454, allocations: 49.42 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003859/0.4493, allocations: 1.911 MB / 402.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.4514, allocations: 1.157 MB / 403.8 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.4516, allocations: 4 kB / 403.8 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004304/0.452, allocations: 67.66 kB / 403.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003157/0.4524, allocations: 91.59 kB / 403.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008634/0.4533, allocations: 254.8 kB / 404.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.4536, allocations: 183.5 kB / 404.4 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.4537, allocations: 33.53 kB / 404.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.4539, allocations: 75.69 kB / 404.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.454, allocations: 79.67 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.454, allocations: 8 kB / 404.6 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.4543, allocations: 71.89 kB / 404.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.908e-05/0.4544, allocations: 55.83 kB / 404.7 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.4545, allocations: 79.42 kB / 404.8 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005642/0.4551, allocations: 246.8 kB / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.4551, allocations: 0 / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.4551, allocations: 4 kB / 405 MB, free: 4.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.4551, allocations: 0 / 405 MB, free: 4.598 MB / 318.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.0009309/0.4561, allocations: 0.5387 MB / 405.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.4561, allocations: 11.89 kB / 405.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.36e-05/0.4562, allocations: 32.75 kB / 405.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005632/0.4568, allocations: 291.8 kB / 405.9 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.4568, allocations: 4.375 kB / 405.9 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.19e-05/0.4569, allocations: 12.12 kB / 405.9 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.4573, allocations: 172.4 kB / 406.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.4573, allocations: 3.938 kB / 406.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.4574, allocations: 0 / 406.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.4574, allocations: 4 kB / 406.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.4575, allocations: 39.92 kB / 406.1 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006977/0.4582, allocations: 486.4 kB / 406.6 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.4586, allocations: 138.5 kB / 406.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.4587, allocations: 63.34 kB / 406.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.4587, allocations: 4 kB / 406.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002077/0.4589, allocations: 101.1 kB / 406.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.4589, allocations: 0 / 406.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005202/0.4595, allocations: 173.6 kB / 407 MB, free: 2.297 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.4596, allocations: 187.9 kB / 407.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004749/0.4601, allocations: 335 kB / 407.6 MB, free: 1.734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.4601, allocations: 33.7 kB / 407.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.4602, allocations: 124.4 kB / 407.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/0.4603, allocations: 19.97 kB / 407.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.4604, allocations: 37.66 kB / 407.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002162/0.4607, allocations: 338.8 kB / 408.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.4608, allocations: 36.05 kB / 408.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.461, allocations: 97.58 kB / 408.2 MB, free: 1.008 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/0.4612, allocations: 101 kB / 408.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4612, allocations: 0 / 408.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002997/0.4615, allocations: 137.4 kB / 408.5 MB, free: 0.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.4615, allocations: 8 kB / 408.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4616, allocations: 0 / 408.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.903e-05/0.4616, allocations: 4 kB / 408.5 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.4617, allocations: 19.98 kB / 408.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.4618, allocations: 0 / 408.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.4619, allocations: 20.03 kB / 408.5 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.4619, allocations: 4 kB / 408.5 MB, free: 0.6953 MB / 318.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.0001848/0.4621, allocations: 162.3 kB / 408.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.4622, allocations: 73.5 kB / 408.7 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.969e-05/0.4623, allocations: 25.75 kB / 408.8 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.4623, allocations: 11.92 kB / 408.8 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.4623, allocations: 0 / 408.8 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.4623, allocations: 8 kB / 408.8 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003093/0.4627, allocations: 245.5 kB / 409 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4627, allocations: 0 / 409 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.552e-05/0.4628, allocations: 15.98 kB / 409 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.4628, allocations: 0 / 409 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.4628, allocations: 4.062 kB / 409 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.4628, allocations: 7.938 kB / 409.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4628, allocations: 4 kB / 409.1 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003688/0.4632, allocations: 187.4 kB / 409.2 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.4633, allocations: 116.9 kB / 409.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/0.4634, allocations: 8 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.331e-05/0.4635, allocations: 7.984 kB / 409.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.4635, allocations: 11.94 kB / 409.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.4636, allocations: 11.92 kB / 409.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003505/0.4639, allocations: 245.9 kB / 409.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4639, allocations: 0 / 409.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.4643, allocations: 32 kB / 409.7 MB, free: 15.43 MB / 334.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.001253/0.4656, allocations: 431.8 kB / 410.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002838/0.4659, allocations: 83.89 kB / 410.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.4659, allocations: 320 / 410.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.466, allocations: 39.92 kB / 410.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.4665, allocations: 72.31 kB / 410.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007594/0.4672, allocations: 385.5 kB / 410.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.4677, allocations: 0.744 MB / 411.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.4679, allocations: 29.47 kB / 411.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.434e-05/0.4679, allocations: 23.42 kB / 411.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4679, allocations: 0 / 411.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of Templates: time 0.009027/0.477, allocations: 2.941 MB / 414.4 MB, free: 10.82 MB / 334.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 -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","/var/lib/jenkins/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