Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 105.8 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008582/0.0008583, allocations: 43.92 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.356, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.005152/0.3612, allocations: 1.953 MB / 401.4 MB, free: 31.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002786/0.3641, allocations: 1.134 MB / 402.6 MB, free: 30.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002684/0.3644, allocations: 7.938 kB / 402.6 MB, free: 30.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005405/0.365, allocations: 59.8 kB / 402.6 MB, free: 30.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003653/0.3654, allocations: 87.7 kB / 402.7 MB, free: 30.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.3668, allocations: 225.8 kB / 402.9 MB, free: 29.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003991/0.3672, allocations: 171.5 kB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.3674, allocations: 33.53 kB / 403.1 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002054/0.3676, allocations: 71.64 kB / 403.2 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.3679, allocations: 87.55 kB / 403.3 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.813e-05/0.3679, allocations: 4 kB / 403.3 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.3682, allocations: 55.97 kB / 403.4 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.3683, allocations: 47.83 kB / 403.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.3684, allocations: 79.41 kB / 403.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.3689, allocations: 240.7 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3689, allocations: 0 / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3689, allocations: 3.938 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.3689, allocations: 0 / 403.7 MB, free: 29.12 MB / 298.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.001032/0.37, allocations: 0.5428 MB / 404.3 MB, free: 28.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.422e-05/0.3701, allocations: 8.031 kB / 404.3 MB, free: 28.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.802e-05/0.3702, allocations: 24.66 kB / 404.3 MB, free: 28.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.3706, allocations: 287.6 kB / 404.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.3707, allocations: 8.375 kB / 404.6 MB, free: 28.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.3707, allocations: 12.12 kB / 404.6 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005555/0.3713, allocations: 185.2 kB / 404.8 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.3713, allocations: 0 / 404.8 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.3713, allocations: 4 kB / 404.8 MB, free: 27.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.3714, allocations: 7.938 kB / 404.8 MB, free: 27.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.3715, allocations: 39.97 kB / 404.8 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006802/0.3722, allocations: 403 kB / 405.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.3726, allocations: 138.5 kB / 405.4 MB, free: 27.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.3727, allocations: 71.34 kB / 405.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-05/0.3728, allocations: 4 kB / 405.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003654/0.3732, allocations: 79.38 kB / 405.5 MB, free: 27.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 3.226e-06/0.3732, allocations: 3.984 kB / 405.5 MB, free: 27.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005352/0.3737, allocations: 173.2 kB / 405.7 MB, free: 26.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.965e-05/0.3738, allocations: 187.9 kB / 405.9 MB, free: 26.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003944/0.3742, allocations: 334.7 kB / 406.2 MB, free: 26.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.3743, allocations: 25.7 kB / 406.2 MB, free: 26.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.496e-05/0.3744, allocations: 136.4 kB / 406.3 MB, free: 26.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.3744, allocations: 16.27 kB / 406.4 MB, free: 26.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.7e-05/0.3745, allocations: 41.61 kB / 406.4 MB, free: 26.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.961e-05/0.3746, allocations: 334.8 kB / 406.7 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.212e-05/0.3747, allocations: 23.98 kB / 406.8 MB, free: 25.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.3748, allocations: 99.44 kB / 406.8 MB, free: 25.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.3751, allocations: 105.9 kB / 407 MB, free: 25.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3751, allocations: 0 / 407 MB, free: 25.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000302/0.3754, allocations: 137.4 kB / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3754, allocations: 4 kB / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3754, allocations: 7.984 kB / 407.1 MB, free: 25.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3755, allocations: 0 / 407.1 MB, free: 25.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.3756, allocations: 23.94 kB / 407.1 MB, free: 25.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.3757, allocations: 3.984 kB / 407.1 MB, free: 25.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.3758, allocations: 19.97 kB / 407.1 MB, free: 25.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.3758, allocations: 12 kB / 407.2 MB, free: 25.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.y,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.0001721/0.376, allocations: 149.8 kB / 407.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.3761, allocations: 81.34 kB / 407.4 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.077e-05/0.3762, allocations: 29.95 kB / 407.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3763, allocations: 4 kB / 407.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.3763, allocations: 3.938 kB / 407.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3763, allocations: 11.88 kB / 407.4 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.3765, allocations: 249.7 kB / 407.7 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3765, allocations: 0 / 407.7 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.17e-05/0.3766, allocations: 15.98 kB / 407.7 MB, free: 24.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.3767, allocations: 4 kB / 407.7 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.3767, allocations: 0 / 407.7 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.3767, allocations: 4 kB / 407.7 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3767, allocations: 0 / 407.7 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007075/0.3774, allocations: 0.7978 MB / 408.5 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.3776, allocations: 116.7 kB / 408.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.3776, allocations: 11.94 kB / 408.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.202e-05/0.3777, allocations: 7.922 kB / 408.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.804e-05/0.3778, allocations: 15.92 kB / 408.6 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/0.3779, allocations: 8 kB / 408.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002962/0.3782, allocations: 245.9 kB / 408.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3782, allocations: 0 / 408.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006015/0.3788, allocations: 35.98 kB / 408.9 MB, free: 23.37 MB / 298.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.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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.001491/0.3803, allocations: 421.2 kB / 409.3 MB, free: 23.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000359/0.3807, allocations: 88.14 kB / 409.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3807, allocations: 4.062 kB / 409.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.3808, allocations: 23.98 kB / 409.5 MB, free: 23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007781/0.3816, allocations: 72.89 kB / 409.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.3828, allocations: 0.5652 MB / 410.1 MB, free: 22.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.3831, allocations: 0.744 MB / 410.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000142/0.3833, allocations: 33.52 kB / 410.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.406e-05/0.3833, allocations: 31.42 kB / 410.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of SimCode: time 9.12e-07/0.3833, allocations: 0 / 410.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of Templates: time 0.009141/0.3925, allocations: 2.991 MB / 413.9 MB, free: 18.52 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches