Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002193/0.002193, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.601/1.601, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 43.92 kB / 378.3 MB, free: 2.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.359, allocations: 53.36 MB / 431.6 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004681/0.3637, allocations: 1.921 MB / 433.5 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002898/0.3666, allocations: 1.305 MB / 434.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.3668, allocations: 7.938 kB / 434.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004285/0.3672, allocations: 67.67 kB / 434.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003989/0.3676, allocations: 135.4 kB / 435.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000703/0.3683, allocations: 230.6 kB / 435.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.3686, allocations: 179.5 kB / 435.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.3687, allocations: 21.73 kB / 435.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.3689, allocations: 79.64 kB / 435.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.369, allocations: 83.67 kB / 435.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.3691, allocations: 8 kB / 435.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.3693, allocations: 75.92 kB / 435.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.3694, allocations: 63.7 kB / 435.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.3695, allocations: 71.48 kB / 435.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004779/0.3699, allocations: 240.3 kB / 436.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.37, allocations: 0 / 436.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.37, allocations: 0 / 436.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.37, allocations: 0 / 436.1 MB, free: 2.461 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001064/0.371, allocations: 498.4 kB / 436.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.3711, allocations: 8.031 kB / 436.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.432e-05/0.3712, allocations: 24.8 kB / 436.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005307/0.3717, allocations: 225.5 kB / 436.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.3717, allocations: 4.375 kB / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.3717, allocations: 8.125 kB / 436.8 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.3722, allocations: 159.5 kB / 437 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.3722, allocations: 0 / 437 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.3722, allocations: 4 kB / 437 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.3722, allocations: 4 kB / 437 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.3723, allocations: 31.98 kB / 437 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006194/0.373, allocations: 365.3 kB / 437.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.3732, allocations: 115.9 kB / 437.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.3733, allocations: 42.56 kB / 437.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.3734, allocations: 0 / 437.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.3736, allocations: 87.31 kB / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.3736, allocations: 0 / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.00045/0.374, allocations: 149.4 kB / 437.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.3742, allocations: 162.2 kB / 437.9 MB, free: 392 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004134/0.3746, allocations: 337.8 kB / 438.3 MB, free: 48 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.409e-05/0.3746, allocations: 29.64 kB / 438.3 MB, free: 12 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.3748, allocations: 136.3 kB / 438.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.3748, allocations: 19.84 kB / 438.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/0.3749, allocations: 29.7 kB / 438.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.3751, allocations: 334.8 kB / 438.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.377e-05/0.3752, allocations: 23.98 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.3753, allocations: 90.84 kB / 438.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.3755, allocations: 88.47 kB / 439 MB, free: 15.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3755, allocations: 0 / 439 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002562/0.3757, allocations: 129.4 kB / 439.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.3757, allocations: 14.48 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3757, allocations: 0 / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.3758, allocations: 4 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.3759, allocations: 12 kB / 439.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.3759, allocations: 4 kB / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.056e-05/0.376, allocations: 11.92 kB / 439.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.376, allocations: 7.938 kB / 439.2 MB, free: 15.06 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001881/0.3762, allocations: 162.5 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.3763, allocations: 73.44 kB / 439.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002858/0.3766, allocations: 111.4 kB / 439.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3766, allocations: 3.984 kB / 439.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.3766, allocations: 4 kB / 439.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.3766, allocations: 3.938 kB / 439.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002405/0.3768, allocations: 208.7 kB / 439.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3768, allocations: 0 / 439.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.786e-05/0.3769, allocations: 15.98 kB / 439.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3769, allocations: 4.062 kB / 439.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.3769, allocations: 4 kB / 439.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3769, allocations: 3.938 kB / 439.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3769, allocations: 128 / 439.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003083/0.3772, allocations: 174.7 kB / 439.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.66e-05/0.3773, allocations: 39.83 kB / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.733e-05/0.3774, allocations: 11.98 kB / 440 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.577e-05/0.3774, allocations: 4 kB / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.091e-05/0.3775, allocations: 7.984 kB / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/0.3775, allocations: 7.938 kB / 440 MB, free: 14.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002744/0.3778, allocations: 253.2 kB / 440.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3778, allocations: 0 / 440.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.3781, allocations: 32.03 kB / 440.3 MB, free: 13.87 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (9): * Single equations (assignments): 7 * 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.001767/0.3798, allocations: 431.6 kB / 440.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002712/0.3801, allocations: 71.84 kB / 440.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3801, allocations: 0 / 440.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.624e-05/0.3802, allocations: 23.98 kB / 440.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004456/0.3806, allocations: 74.34 kB / 440.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007929/0.3814, allocations: 377.3 kB / 441.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.3819, allocations: 0.7437 MB / 442 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.951e-05/0.382, allocations: 29.47 kB / 442 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.807e-05/0.382, allocations: 19.44 kB / 442 MB, free: 12.21 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.382, allocations: 0 / 442 MB, free: 12.21 MB / 350.1 MB Notification: Performance of Templates: time 0.00826/0.3903, allocations: 2.9 MB / 444.9 MB, free: 9.336 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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: 5.1995446279179305]