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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 112 kB / 20.43 MB, free: 1.465 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002043/0.002043, allocations: 186.4 kB / 23.71 MB, free: 4.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.558/1.558, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,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=5025,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 51.91 kB / 370.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3614, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004319/0.3657, allocations: 1.929 MB / 425 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.3682, allocations: 1.2 MB / 426.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.3684, allocations: 7.938 kB / 426.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004886/0.3689, allocations: 59.67 kB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003761/0.3692, allocations: 95.59 kB / 426.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.3703, allocations: 270 kB / 426.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003693/0.3707, allocations: 183.4 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.3708, allocations: 25.72 kB / 426.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.371, allocations: 75.7 kB / 426.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.3712, allocations: 95.53 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.835e-05/0.3712, allocations: 12 kB / 427.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002278/0.3715, allocations: 71.94 kB / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.3716, allocations: 55.83 kB / 427.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.3717, allocations: 79.42 kB / 427.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005362/0.3723, allocations: 244.2 kB / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3723, allocations: 4 kB / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3723, allocations: 0 / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.3723, allocations: 0 / 427.5 MB, free: 10.3 MB / 334.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.001061/0.3734, allocations: 490.4 kB / 428 MB, free: 9.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.632e-05/0.3734, allocations: 8.031 kB / 428 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.229e-05/0.3735, allocations: 24.8 kB / 428 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006553/0.3742, allocations: 241.4 kB / 428.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.3742, allocations: 12.36 kB / 428.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.3743, allocations: 8.125 kB / 428.3 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.3748, allocations: 188.3 kB / 428.4 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3748, allocations: 0 / 428.4 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.3748, allocations: 4 kB / 428.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.3748, allocations: 7.922 kB / 428.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.375, allocations: 39.92 kB / 428.5 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000781/0.3758, allocations: 366.3 kB / 428.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.3761, allocations: 142.5 kB / 429 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.3762, allocations: 59.42 kB / 429.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.3763, allocations: 7.984 kB / 429.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.3765, allocations: 71.39 kB / 429.1 MB, free: 8.465 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.3765, allocations: 3.938 kB / 429.1 MB, free: 8.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005097/0.377, allocations: 169.4 kB / 429.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001733/0.3771, allocations: 191.8 kB / 429.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000454/0.3776, allocations: 333.9 kB / 429.8 MB, free: 7.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.3776, allocations: 25.7 kB / 429.8 MB, free: 7.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3778, allocations: 136.7 kB / 430 MB, free: 7.555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.753e-05/0.3778, allocations: 23.84 kB / 430 MB, free: 7.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.937e-05/0.3779, allocations: 37.7 kB / 430 MB, free: 7.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.3781, allocations: 334.8 kB / 430.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.624e-05/0.3782, allocations: 27.98 kB / 430.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.3783, allocations: 96.58 kB / 430.5 MB, free: 7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.3785, allocations: 101.9 kB / 430.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.3785, allocations: 11.94 kB / 430.6 MB, free: 6.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002697/0.3788, allocations: 133.4 kB / 430.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.3788, allocations: 6.5 kB / 430.7 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3789, allocations: 4 kB / 430.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3789, allocations: 0 / 430.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.379, allocations: 27.92 kB / 430.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.379, allocations: 0 / 430.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.688e-05/0.3791, allocations: 24.06 kB / 430.8 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.3791, allocations: 8 kB / 430.8 MB, free: 6.664 MB / 334.1 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.0001796/0.3793, allocations: 150.9 kB / 430.9 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.3795, allocations: 81.48 kB / 431 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003066/0.3798, allocations: 123.4 kB / 431.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.3798, allocations: 4 kB / 431.1 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3798, allocations: 4.094 kB / 431.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.3798, allocations: 3.938 kB / 431.2 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002931/0.3801, allocations: 220.6 kB / 431.4 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3801, allocations: 0 / 431.4 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.712e-05/0.3802, allocations: 15.94 kB / 431.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3802, allocations: 0 / 431.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.3802, allocations: 11.98 kB / 431.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.3802, allocations: 0 / 431.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.3802, allocations: 4 kB / 431.4 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.3805, allocations: 191.3 kB / 431.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.349e-05/0.3806, allocations: 31.84 kB / 431.6 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.069e-05/0.3806, allocations: 11.98 kB / 431.6 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.825e-05/0.3807, allocations: 4 kB / 431.6 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.091e-05/0.3808, allocations: 15.92 kB / 431.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.3808, allocations: 7.938 kB / 431.7 MB, free: 5.707 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003081/0.3811, allocations: 249.2 kB / 431.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3811, allocations: 0 / 431.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.3814, allocations: 35.94 kB / 431.9 MB, free: 5.426 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,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.001675/0.3831, allocations: 426.1 kB / 432.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003125/0.3834, allocations: 88.09 kB / 432.4 MB, free: 5.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3834, allocations: 4.062 kB / 432.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.807e-05/0.3835, allocations: 23.98 kB / 432.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.384, allocations: 72.86 kB / 432.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009045/0.3849, allocations: 381.8 kB / 432.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.3854, allocations: 0.7556 MB / 433.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.516e-05/0.3855, allocations: 25.88 kB / 433.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.412e-05/0.3856, allocations: 23.42 kB / 433.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3856, allocations: 0 / 433.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of Templates: time 0.009635/0.3952, allocations: 3.122 MB / 436.8 MB, free: 0.6367 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.969634044915438]