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.001612/0.001612, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.00198/0.00198, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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.003/1.003, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 2.845e-06/2.845e-06, allocations: 4 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.729e-05/3.014e-05, allocations: 2.312 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002889/0.002919, allocations: 1.94 MB / 274.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.004592, allocations: 1.231 MB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.004728, allocations: 3.938 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003645/0.005092, allocations: 71.59 kB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003626/0.005455, allocations: 139.2 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000673/0.006128, allocations: 231.2 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002651/0.006393, allocations: 187.4 kB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.006505, allocations: 17.8 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.006655, allocations: 99.78 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.006783, allocations: 67.8 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.006808, allocations: 12 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.006976, allocations: 75.81 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.642e-05/0.007073, allocations: 59.77 kB / 277.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.756e-05/0.00714, allocations: 39.86 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.007454, allocations: 191.2 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.007457, allocations: 0 / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.007458, allocations: 0 / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.007464, allocations: 0 / 277.3 MB, free: 13.18 MB / 266.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.0007361/0.0082, allocations: 0.5672 MB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.008242, allocations: 12.03 kB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.008316, allocations: 28.8 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.008633, allocations: 231.6 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.008655, allocations: 4.375 kB / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.008678, allocations: 8.375 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003411/0.009019, allocations: 198.2 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.009034, allocations: 3.938 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.009045, allocations: 0 / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.009055, allocations: 4 kB / 278.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.681e-05/0.009121, allocations: 27.92 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/0.009584, allocations: 371 kB / 278.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.009749, allocations: 113.2 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.116e-05/0.00981, allocations: 43.05 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.009835, allocations: 8 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003336/0.01017, allocations: 81.03 kB / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 2.054e-06/0.01017, allocations: 0 / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002812/0.01045, allocations: 121.4 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.659e-05/0.01053, allocations: 140.5 kB / 279.2 MB, free: 11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.01083, allocations: 328.2 kB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.01085, allocations: 25.7 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.01097, allocations: 178.8 kB / 279.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.898e-05/0.011, allocations: 19.89 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.314e-05/0.01105, allocations: 31.38 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.01123, allocations: 0.5081 MB / 280.3 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.695e-05/0.01127, allocations: 12 kB / 280.3 MB, free: 9.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.808e-05/0.01134, allocations: 106.1 kB / 280.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.641e-05/0.01142, allocations: 47.3 kB / 280.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.01142, allocations: 0 / 280.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001436/0.01157, allocations: 89.48 kB / 280.6 MB, free: 9.578 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.01158, allocations: 8 kB / 280.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.01159, allocations: 0 / 280.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.0116, allocations: 64 / 280.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.26e-05/0.0117, allocations: 19.98 kB / 280.6 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.0117, allocations: 0 / 280.6 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.037e-05/0.01175, allocations: 4 kB / 280.6 MB, free: 9.547 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.01176, allocations: 0 / 280.6 MB, free: 9.547 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 0.0001063/0.01187, allocations: 171 kB / 280.8 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.702e-05/0.01195, allocations: 69.8 kB / 280.8 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001889/0.01213, allocations: 107.4 kB / 280.9 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.01214, allocations: 4 kB / 280.9 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.01214, allocations: 8.062 kB / 281 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01215, allocations: 0 / 281 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.01233, allocations: 196.5 kB / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01233, allocations: 0 / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.674e-05/0.01239, allocations: 12 kB / 281.2 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.01239, allocations: 0 / 281.2 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.0124, allocations: 11.98 kB / 281.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.0124, allocations: 0 / 281.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.0124, allocations: 0 / 281.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001866/0.01259, allocations: 167.5 kB / 281.3 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.586e-05/0.01267, allocations: 43.77 kB / 281.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.781e-05/0.0127, allocations: 8 kB / 281.4 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.259e-05/0.01274, allocations: 0 / 281.4 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.746e-05/0.0128, allocations: 11.98 kB / 281.4 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.01281, allocations: 4 kB / 281.4 MB, free: 8.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001753/0.01299, allocations: 225.1 kB / 281.6 MB, free: 8.441 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01299, allocations: 3.938 kB / 281.6 MB, free: 8.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002616/0.01325, allocations: 35.94 kB / 281.7 MB, free: 8.402 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.00106/0.01431, allocations: 407.8 kB / 282.1 MB, free: 8.141 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001647/0.01447, allocations: 51.59 kB / 282.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01447, allocations: 0 / 282.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.591e-05/0.01453, allocations: 35.66 kB / 282.1 MB, free: 8.047 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.01488, allocations: 68.41 kB / 282.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000484/0.01536, allocations: 337.2 kB / 282.5 MB, free: 7.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.05e-05/0.01542, allocations: 87.97 kB / 282.6 MB, free: 7.508 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.146e-05/0.01548, allocations: 25.75 kB / 282.7 MB, free: 7.484 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.01553, allocations: 20.5 kB / 282.7 MB, free: 7.465 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01553, allocations: 192 / 282.7 MB, free: 7.465 MB / 266.7 MB Notification: Performance of Templates: time 0.00668/0.02221, allocations: 2.992 MB / 285.7 MB, free: 4.508 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.190193328075111]