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.001297/0.001297, allocations: 115.3 kB / 17.06 MB, free: 6 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.001089/0.001089, allocations: 196 kB / 18 MB, free: 5.078 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.509/1.509, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009868/0.0009868, allocations: 39.94 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3545, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003792/0.3583, allocations: 1.898 MB / 402.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.3603, allocations: 1.157 MB / 403.8 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.3604, allocations: 7.938 kB / 403.8 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003466/0.3608, allocations: 67.66 kB / 403.8 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.3611, allocations: 91.59 kB / 403.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007028/0.3618, allocations: 262.3 kB / 404.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002349/0.362, allocations: 175.5 kB / 404.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.3622, allocations: 25.56 kB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.3623, allocations: 87.62 kB / 404.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.3624, allocations: 79.67 kB / 404.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.573e-05/0.3624, allocations: 8 kB / 404.6 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.3626, allocations: 71.89 kB / 404.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.176e-05/0.3627, allocations: 51.83 kB / 404.7 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.845e-05/0.3628, allocations: 83.41 kB / 404.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.3631, allocations: 240.3 kB / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3632, allocations: 0 / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3632, allocations: 0 / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.3632, allocations: 3.938 kB / 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.000786/0.364, allocations: 0.535 MB / 405.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.364, allocations: 15.89 kB / 405.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.9e-05/0.3641, allocations: 24.66 kB / 405.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.3645, allocations: 287.6 kB / 405.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.3645, allocations: 4.375 kB / 405.9 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.3645, allocations: 20.05 kB / 405.9 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003643/0.3649, allocations: 168.4 kB / 406 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3649, allocations: 0 / 406 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.365, allocations: 8 kB / 406 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.365, allocations: 0 / 406 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.3651, allocations: 47.91 kB / 406.1 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005595/0.3657, allocations: 478.3 kB / 406.6 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.366, allocations: 146.5 kB / 406.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.3661, allocations: 55.42 kB / 406.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.3661, allocations: 4 kB / 406.8 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001852/0.3663, allocations: 97.03 kB / 406.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.3663, allocations: 4 kB / 406.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004232/0.3668, allocations: 169.6 kB / 407 MB, free: 2.309 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.3669, allocations: 191.9 kB / 407.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003181/0.3672, allocations: 326.7 kB / 407.5 MB, free: 1.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.3672, allocations: 29.7 kB / 407.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.3673, allocations: 124.4 kB / 407.7 MB, free: 1.586 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.3674, allocations: 27.77 kB / 407.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.3674, allocations: 29.72 kB / 407.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3676, allocations: 342.8 kB / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.589e-05/0.3676, allocations: 27.92 kB / 408.1 MB, free: 1.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.3678, allocations: 95.7 kB / 408.2 MB, free: 1.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001689/0.3679, allocations: 101.3 kB / 408.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.368, allocations: 0 / 408.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002568/0.3682, allocations: 137.3 kB / 408.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.3682, allocations: 8.156 kB / 408.4 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3683, allocations: 3.984 kB / 408.4 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3683, allocations: 4 kB / 408.4 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.3684, allocations: 23.92 kB / 408.5 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.3684, allocations: 4 kB / 408.5 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.153e-05/0.3685, allocations: 19.78 kB / 408.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.3685, allocations: 4 kB / 408.5 MB, free: 0.707 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.0001346/0.3687, allocations: 162.3 kB / 408.7 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.637e-05/0.3687, allocations: 69.42 kB / 408.7 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.342e-05/0.3688, allocations: 29.7 kB / 408.8 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3688, allocations: 3.938 kB / 408.8 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3688, allocations: 0 / 408.8 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.3688, allocations: 11.92 kB / 408.8 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.3691, allocations: 237.6 kB / 409 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3691, allocations: 3.938 kB / 409 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.296e-05/0.3692, allocations: 19.92 kB / 409 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.3692, allocations: 4 kB / 409 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.3692, allocations: 64 / 409 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.3692, allocations: 8 kB / 409 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3692, allocations: 0 / 409 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.3695, allocations: 183.2 kB / 409.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.994e-05/0.3696, allocations: 120.8 kB / 409.3 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.3696, allocations: 12.05 kB / 409.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.859e-05/0.3697, allocations: 8 kB / 409.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.331e-05/0.3698, allocations: 11.92 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.3698, allocations: 7.938 kB / 409.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002251/0.37, allocations: 241.9 kB / 409.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.37, allocations: 0 / 409.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002636/0.3703, allocations: 35.98 kB / 409.6 MB, free: 15.45 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.0009942/0.3713, allocations: 426.4 kB / 410.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000248/0.3716, allocations: 91.83 kB / 410.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3716, allocations: 0 / 410.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.3717, allocations: 31.98 kB / 410.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.3722, allocations: 72.83 kB / 410.2 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005624/0.3727, allocations: 390.5 kB / 410.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.373, allocations: 0.7398 MB / 411.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.889e-05/0.3731, allocations: 29.48 kB / 411.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.865e-05/0.3732, allocations: 27.42 kB / 411.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3732, allocations: 0 / 411.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of Templates: time 0.00646/0.3796, allocations: 2.936 MB / 414.4 MB, free: 10.85 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