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.000991/0.000991, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001053/0.001053, allocations: 147.1 kB / 24.89 MB, free: 8.742 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.9561/0.9561, allocations: 173.4 MB / 201.5 MB, free: 8.746 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.262e-06/1.262e-06, allocations: 0 / 268.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.51e-05/1.636e-05, allocations: 6.25 kB / 268.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002408/0.002425, allocations: 1.964 MB / 270.5 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.003692, allocations: 1.11 MB / 271.6 MB, free: 2.918 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.514e-05/0.003787, allocations: 3.938 kB / 271.6 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.004032, allocations: 67.55 kB / 271.6 MB, free: 2.848 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.00422, allocations: 91.58 kB / 271.7 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004791/0.004699, allocations: 255.1 kB / 272 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.004879, allocations: 175.5 kB / 272.2 MB, free: 2.336 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.23e-05/0.004951, allocations: 18.45 kB / 272.2 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.005059, allocations: 99.67 kB / 272.3 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.551e-05/0.005144, allocations: 67.8 kB / 272.3 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.005162, allocations: 8 kB / 272.3 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.005294, allocations: 75.86 kB / 272.4 MB, free: 2.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.861e-05/0.005353, allocations: 55.84 kB / 272.5 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.104e-05/0.005394, allocations: 43.78 kB / 272.5 MB, free: 1.973 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.005605, allocations: 179.3 kB / 272.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.005607, allocations: 0 / 272.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.005608, allocations: 0 / 272.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.005611, allocations: 0 / 272.7 MB, free: 1.797 MB / 250.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.0003751/0.005987, allocations: 437.2 kB / 273.1 MB, free: 1.34 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.367e-05/0.00601, allocations: 11.97 kB / 273.1 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.387e-05/0.006044, allocations: 20.91 kB / 273.1 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.006403, allocations: 204.8 kB / 273.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.006417, allocations: 8.375 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-06/0.006427, allocations: 8.312 kB / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.006611, allocations: 149.5 kB / 273.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.006618, allocations: 3.938 kB / 273.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.006626, allocations: 4 kB / 273.5 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.00663, allocations: 4 kB / 273.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.454e-05/0.006665, allocations: 22.75 kB / 273.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002198/0.006885, allocations: 211.5 kB / 273.7 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.911e-05/0.006984, allocations: 129.4 kB / 273.9 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.793e-05/0.007012, allocations: 30.56 kB / 273.9 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.007024, allocations: 7.938 kB / 273.9 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.542e-05/0.0071, allocations: 70.2 kB / 274 MB, free: 356 kB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.022e-06/0.007101, allocations: 0 / 274 MB, free: 356 kB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.000128/0.007229, allocations: 89.53 kB / 274.1 MB, free: 260 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.00727, allocations: 106.8 kB / 274.2 MB, free: 128 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.007424, allocations: 254.6 kB / 274.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.007441, allocations: 29.7 kB / 274.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.007569, allocations: 104.6 kB / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.007608, allocations: 15.84 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.863e-05/0.007656, allocations: 33.89 kB / 274.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.352e-05/0.00774, allocations: 330.8 kB / 274.9 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.727e-05/0.007777, allocations: 18.81 kB / 274.9 MB, free: 15.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.065e-05/0.007818, allocations: 52.27 kB / 275 MB, free: 15.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.156e-05/0.007869, allocations: 43.28 kB / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.007872, allocations: 0 / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.895e-05/0.007971, allocations: 72.38 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.007985, allocations: 8 kB / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.00799, allocations: 0 / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.008003, allocations: 4.062 kB / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.179e-05/0.008085, allocations: 15.98 kB / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.008087, allocations: 0 / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.35e-05/0.008131, allocations: 4.312 kB / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-06/0.008137, allocations: 0 / 275.1 MB, free: 15.09 MB / 266.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 7.684e-05/0.008214, allocations: 124.6 kB / 275.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.949e-05/0.008263, allocations: 57.55 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.008377, allocations: 79.53 kB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.008383, allocations: 11.97 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.008384, allocations: 4.062 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.008388, allocations: 0 / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.008492, allocations: 109.8 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.008495, allocations: 4 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.59e-05/0.008541, allocations: 11.98 kB / 275.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.008546, allocations: 4 kB / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.008553, allocations: 3.938 kB / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.008554, allocations: 0 / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.008557, allocations: 4.078 kB / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.891e-05/0.008646, allocations: 112.4 kB / 275.7 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.286e-05/0.008698, allocations: 39.81 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.008717, allocations: 3.938 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.87e-05/0.008756, allocations: 4 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.008792, allocations: 11.98 kB / 275.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.008804, allocations: 3.984 kB / 275.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.535e-05/0.008879, allocations: 93.61 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008879, allocations: 0 / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001455/0.009024, allocations: 43.88 kB / 275.8 MB, free: 14.3 MB / 266.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.001038/0.01006, allocations: 0.5148 MB / 276.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.085e-05/0.01015, allocations: 36.78 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.01016, allocations: 4 kB / 276.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.061e-05/0.01019, allocations: 20.8 kB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.01039, allocations: 60.97 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003587/0.01075, allocations: 328.3 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.329e-05/0.01079, allocations: 84 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.544e-05/0.01084, allocations: 29.56 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.73e-05/0.01092, allocations: 87.3 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01092, allocations: 0 / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of Templates: time 0.004574/0.0155, allocations: 3.107 MB / 280.1 MB, free: 10.27 MB / 266.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6345733338966966]