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.0009935/0.0009935, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009061/0.0009061, allocations: 160.8 kB / 25.61 MB, free: 8.895 MB / 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 0.9053/0.9053, allocations: 177.1 MB / 206 MB, free: 4.512 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 1.994e-06/1.994e-06, allocations: 3.938 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.142e-05, allocations: 7.656 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003365/0.003387, allocations: 1.909 MB / 276.1 MB, free: 2.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.005351, allocations: 1.222 MB / 277.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.005487, allocations: 4 kB / 277.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003361/0.005823, allocations: 71.59 kB / 277.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003597/0.006182, allocations: 144.3 kB / 277.5 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005355/0.006718, allocations: 234.4 kB / 277.8 MB, free: 0.832 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002519/0.00697, allocations: 179.5 kB / 277.9 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.007075, allocations: 13.81 kB / 278 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.007228, allocations: 107.7 kB / 278.1 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.007351, allocations: 64.45 kB / 278.1 MB, free: 484 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.007376, allocations: 12 kB / 278.1 MB, free: 472 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.007534, allocations: 74.34 kB / 278.2 MB, free: 400 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.402e-05/0.007618, allocations: 59.77 kB / 278.3 MB, free: 340 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.541e-05/0.007674, allocations: 31.86 kB / 278.3 MB, free: 308 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002895/0.007963, allocations: 195.2 kB / 278.5 MB, free: 112 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.007966, allocations: 4 kB / 278.5 MB, free: 108 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.007967, allocations: 0 / 278.5 MB, free: 108 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.007971, allocations: 0 / 278.5 MB, free: 108 kB / 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.0006524/0.008624, allocations: 0.571 MB / 279.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.008661, allocations: 12.03 kB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/0.008722, allocations: 32.8 kB / 279.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.00899, allocations: 215.6 kB / 279.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.009011, allocations: 4.375 kB / 279.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.009026, allocations: 8.375 kB / 279.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.009276, allocations: 161.2 kB / 279.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.009288, allocations: 3.938 kB / 279.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.009297, allocations: 0 / 279.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.009305, allocations: 4 kB / 279.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.411e-05/0.009359, allocations: 11.98 kB / 279.5 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003884/0.009747, allocations: 327.7 kB / 279.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001586/0.009906, allocations: 113.3 kB / 279.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.059e-05/0.009956, allocations: 46.98 kB / 280 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.009972, allocations: 0 / 280 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001173/0.01009, allocations: 80.95 kB / 280.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.01009, allocations: 0 / 280.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002508/0.01034, allocations: 109.5 kB / 280.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.01041, allocations: 118.7 kB / 280.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002702/0.01068, allocations: 316.4 kB / 280.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.0107, allocations: 37.7 kB / 280.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.01081, allocations: 186.7 kB / 280.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.01083, allocations: 11.89 kB / 280.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.526e-05/0.01089, allocations: 39.34 kB / 280.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.01106, allocations: 0.504 MB / 281.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.202e-05/0.01108, allocations: 8 kB / 281.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.786e-05/0.01114, allocations: 64.73 kB / 281.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.914e-05/0.0112, allocations: 35.38 kB / 281.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.0112, allocations: 0 / 281.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001381/0.01134, allocations: 101.8 kB / 281.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.01135, allocations: 4 kB / 281.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.01135, allocations: 160 / 281.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.01136, allocations: 4 kB / 281.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.541e-05/0.01144, allocations: 8 kB / 281.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.01145, allocations: 11.92 kB / 281.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.369e-05/0.0115, allocations: 7.984 kB / 281.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.01151, allocations: 4 kB / 281.6 MB, free: 12.68 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 9.605e-05/0.0116, allocations: 156.6 kB / 281.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.589e-05/0.01168, allocations: 77.45 kB / 281.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001625/0.01184, allocations: 99.42 kB / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.01185, allocations: 0 / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.01185, allocations: 4 kB / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.01185, allocations: 0 / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.01201, allocations: 157.1 kB / 282.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.01201, allocations: 0 / 282.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.365e-05/0.01206, allocations: 12 kB / 282.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.01207, allocations: 3.938 kB / 282.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.01208, allocations: 3.984 kB / 282.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.01208, allocations: 12 kB / 282.1 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01208, allocations: 0 / 282.1 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001633/0.01225, allocations: 143.7 kB / 282.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.154e-05/0.01231, allocations: 31.83 kB / 282.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.01234, allocations: 11.94 kB / 282.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.039e-05/0.01239, allocations: 11.92 kB / 282.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.329e-05/0.01243, allocations: 11.98 kB / 282.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.01244, allocations: 0 / 282.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001471/0.01259, allocations: 217.1 kB / 282.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01259, allocations: 0 / 282.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002652/0.01286, allocations: 35.94 kB / 282.6 MB, free: 11.62 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.001093/0.01395, allocations: 404.9 kB / 283 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001346/0.01408, allocations: 55.53 kB / 283 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01408, allocations: 0 / 283 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.791e-05/0.01413, allocations: 23.69 kB / 283.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.01447, allocations: 56.66 kB / 283.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004763/0.01494, allocations: 345.2 kB / 283.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.532e-05/0.01501, allocations: 83.83 kB / 283.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.149e-05/0.01507, allocations: 25.88 kB / 283.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.0152, allocations: 106.2 kB / 283.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of SimCode: time 7.22e-07/0.0152, allocations: 0 / 283.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of Templates: time 0.006498/0.0217, allocations: 3.188 MB / 286.8 MB, free: 7.484 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: 2.6802654578350484]