Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.0008257/0.0008257, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.004068/0.004068, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 18.57 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 0.8534/0.8534, allocations: 173.4 MB / 201.2 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 3.938 kB / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.533e-05/2.671e-05, allocations: 5.656 kB / 319.7 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.00243/0.002457, allocations: 1.84 MB / 321.5 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.003785, allocations: 1.067 MB / 322.6 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.003906, allocations: 11.94 kB / 322.6 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002616/0.004168, allocations: 67.59 kB / 322.7 MB, free: 2.875 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.00441, allocations: 99.52 kB / 322.8 MB, free: 2.777 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005642/0.004974, allocations: 248.8 kB / 323 MB, free: 2.539 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002159/0.00519, allocations: 179.5 kB / 323.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.821e-05/0.005288, allocations: 33.7 kB / 323.2 MB, free: 2.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.005403, allocations: 95.78 kB / 323.3 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.523e-05/0.005498, allocations: 67.8 kB / 323.4 MB, free: 2.168 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.005517, allocations: 8 kB / 323.4 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.005649, allocations: 71.81 kB / 323.5 MB, free: 2.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.525e-05/0.005714, allocations: 51.84 kB / 323.5 MB, free: 2.039 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.778e-05/0.005762, allocations: 43.78 kB / 323.5 MB, free: 1.996 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000265/0.006027, allocations: 235.3 kB / 323.8 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.00603, allocations: 0 / 323.8 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.006031, allocations: 3.938 kB / 323.8 MB, free: 1.762 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.006036, allocations: 4 kB / 323.8 MB, free: 1.758 MB / 282.7 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.000506/0.006541, allocations: 462.6 kB / 324.2 MB, free: 1.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.006572, allocations: 12.03 kB / 324.2 MB, free: 1.258 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.842e-05/0.006621, allocations: 28.77 kB / 324.3 MB, free: 1.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.006917, allocations: 228.8 kB / 324.5 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.00693, allocations: 8.25 kB / 324.5 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.006944, allocations: 12.36 kB / 324.5 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.00721, allocations: 184.9 kB / 324.7 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.007218, allocations: 3.938 kB / 324.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.007229, allocations: 0 / 324.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.007234, allocations: 0 / 324.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.534e-05/0.007309, allocations: 39.97 kB / 324.7 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003575/0.007666, allocations: 314.1 kB / 325 MB, free: 368 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.00783, allocations: 119.8 kB / 325.2 MB, free: 220 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.063e-05/0.00788, allocations: 46.56 kB / 325.2 MB, free: 164 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.007897, allocations: 0 / 325.2 MB, free: 164 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.008016, allocations: 83.31 kB / 325.3 MB, free: 68 kB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.008018, allocations: 0 / 325.3 MB, free: 68 kB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002707/0.008289, allocations: 157.5 kB / 325.4 MB, free: 15.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.008348, allocations: 132.5 kB / 325.6 MB, free: 15.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.008568, allocations: 326.1 kB / 325.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.008585, allocations: 33.7 kB / 325.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.008647, allocations: 128.1 kB / 326.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.008666, allocations: 19.78 kB / 326.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.008705, allocations: 33.66 kB / 326.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.369e-05/0.008789, allocations: 326.8 kB / 326.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.132e-05/0.00883, allocations: 23.98 kB / 326.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.186e-05/0.008902, allocations: 114.8 kB / 326.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.782e-05/0.00898, allocations: 61.89 kB / 326.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.008982, allocations: 0 / 326.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001263/0.009108, allocations: 113.5 kB / 326.7 MB, free: 14.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.00912, allocations: 4 kB / 326.7 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.009125, allocations: 0 / 326.7 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.009138, allocations: 0 / 326.7 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.572e-05/0.009204, allocations: 15.98 kB / 326.7 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.009208, allocations: 0 / 326.7 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.059e-05/0.009248, allocations: 7.953 kB / 326.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.009255, allocations: 11.83 kB / 326.8 MB, free: 14.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.495e-05/0.00935, allocations: 153.7 kB / 326.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.433e-05/0.009405, allocations: 65.59 kB / 327 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002074/0.009612, allocations: 135.6 kB / 327.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.009616, allocations: 4 kB / 327.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.00962, allocations: 0 / 327.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.009624, allocations: 0 / 327.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.009752, allocations: 173.2 kB / 327.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.009754, allocations: 0 / 327.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-05/0.009795, allocations: 16 kB / 327.3 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.009798, allocations: 3.938 kB / 327.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.009809, allocations: 7.984 kB / 327.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.009811, allocations: 4.062 kB / 327.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.009812, allocations: 0 / 327.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.009967, allocations: 170.5 kB / 327.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.548e-05/0.01002, allocations: 39.78 kB / 327.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.01004, allocations: 8.047 kB / 327.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.929e-05/0.01008, allocations: 12 kB / 327.5 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.01012, allocations: 15.91 kB / 327.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.01014, allocations: 4 kB / 327.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001525/0.01029, allocations: 241.2 kB / 327.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01029, allocations: 0 / 327.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001971/0.01049, allocations: 39.92 kB / 327.8 MB, free: 13.34 MB / 298.7 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 (10): * Single equations (assignments): 8 * 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.0007579/0.01124, allocations: 454.4 kB / 328.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000164/0.01141, allocations: 67.91 kB / 328.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01141, allocations: 0 / 328.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.609e-05/0.01146, allocations: 27.98 kB / 328.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.01173, allocations: 63.75 kB / 328.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000474/0.0122, allocations: 402.6 kB / 328.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.671e-05/0.01229, allocations: 135.9 kB / 329 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.942e-05/0.01233, allocations: 16.5 kB / 329 MB, free: 12.32 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01233, allocations: 0 / 329 MB, free: 12.32 MB / 298.7 MB Notification: Performance of Templates: time 0.003611/0.01594, allocations: 2.949 MB / 331.9 MB, free: 9.383 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.4145813984796405]