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.0007783/0.0007783, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001037/0.001815, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006556/0.0006556, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009045/0.00156, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8666/0.8666, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.159/1.026, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.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.633e-06/1.633e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.249e-05/2.413e-05, allocations: 2.312 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003651/0.003676, allocations: 1.969 MB / 241.7 MB, free: 4.41 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.005535, allocations: 1.11 MB / 242.8 MB, free: 3.293 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.005665, allocations: 7.938 kB / 242.8 MB, free: 3.285 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002688/0.005934, allocations: 69.52 kB / 242.9 MB, free: 3.219 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000255/0.006189, allocations: 95.52 kB / 243 MB, free: 3.125 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007368/0.006926, allocations: 268.9 kB / 243.2 MB, free: 2.863 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.007224, allocations: 167.5 kB / 243.4 MB, free: 2.699 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.007351, allocations: 23.05 kB / 243.4 MB, free: 2.676 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.007577, allocations: 127.6 kB / 243.5 MB, free: 2.551 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.007765, allocations: 68.33 kB / 243.6 MB, free: 2.484 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/0.007795, allocations: 9.688 kB / 243.6 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002138/0.008008, allocations: 71.81 kB / 243.7 MB, free: 2.406 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-05/0.008093, allocations: 43.86 kB / 243.7 MB, free: 2.363 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.929e-05/0.008152, allocations: 31.88 kB / 243.8 MB, free: 2.332 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003262/0.008478, allocations: 172.4 kB / 243.9 MB, free: 2.164 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.41e-05/0.008492, allocations: 4 kB / 243.9 MB, free: 2.16 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.008494, allocations: 0 / 243.9 MB, free: 2.16 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.008508, allocations: 0 / 243.9 MB, free: 2.16 MB / 234.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.0007192/0.009227, allocations: 473.8 kB / 244.4 MB, free: 1.668 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.009264, allocations: 8.031 kB / 244.4 MB, free: 1.66 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/0.009321, allocations: 17.92 kB / 244.4 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.009615, allocations: 209.5 kB / 244.6 MB, free: 1.414 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.009639, allocations: 13 kB / 244.6 MB, free: 1.402 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.009658, allocations: 4.375 kB / 244.7 MB, free: 1.398 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.009913, allocations: 139 kB / 244.8 MB, free: 1.242 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.009925, allocations: 10.47 kB / 244.8 MB, free: 1.234 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.009935, allocations: 0 / 244.8 MB, free: 1.234 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.009941, allocations: 0 / 244.8 MB, free: 1.234 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.811e-05/0.009999, allocations: 26.73 kB / 244.8 MB, free: 1.207 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003451/0.01034, allocations: 207.7 kB / 245 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.01051, allocations: 134.8 kB / 245.2 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.176e-05/0.01055, allocations: 26.58 kB / 245.2 MB, free: 0.7852 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.01058, allocations: 12.73 kB / 245.2 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001251/0.0107, allocations: 75.19 kB / 245.3 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.0107, allocations: 0 / 245.3 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001989/0.0109, allocations: 88.72 kB / 245.4 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.01096, allocations: 110.8 kB / 245.5 MB, free: 476 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.01119, allocations: 250.7 kB / 245.7 MB, free: 212 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.01121, allocations: 29.7 kB / 245.7 MB, free: 176 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.01126, allocations: 104.6 kB / 245.8 MB, free: 68 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.01129, allocations: 19.88 kB / 245.9 MB, free: 48 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.503e-05/0.01134, allocations: 25.67 kB / 245.9 MB, free: 16 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.01146, allocations: 335.7 kB / 246.2 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.744e-05/0.01149, allocations: 14.83 kB / 246.2 MB, free: 15.66 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.101e-05/0.01154, allocations: 53.17 kB / 246.3 MB, free: 15.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.617e-05/0.0116, allocations: 43.28 kB / 246.3 MB, free: 15.55 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01161, allocations: 1.781 kB / 246.3 MB, free: 15.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001137/0.01172, allocations: 68.44 kB / 246.4 MB, free: 15.47 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.01174, allocations: 4 kB / 246.4 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01174, allocations: 4.656 kB / 246.4 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.01175, allocations: 0 / 246.4 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.01186, allocations: 20.61 kB / 246.4 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.507e-06/0.01186, allocations: 0 / 246.4 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.326e-05/0.01192, allocations: 8.75 kB / 246.4 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.01193, allocations: 4.75 kB / 246.4 MB, free: 15.43 MB / 250.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.264e-05/0.01202, allocations: 124.7 kB / 246.6 MB, free: 15.3 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.921e-05/0.01209, allocations: 55.22 kB / 246.6 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001404/0.01223, allocations: 75.44 kB / 246.7 MB, free: 15.16 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.01224, allocations: 4 kB / 246.7 MB, free: 15.16 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.01224, allocations: 384 / 246.7 MB, free: 15.16 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.01224, allocations: 4 kB / 246.7 MB, free: 15.16 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001336/0.01238, allocations: 109.8 kB / 246.8 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01238, allocations: 4 kB / 246.8 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.632e-05/0.01245, allocations: 19.92 kB / 246.8 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.349e-05/0.01252, allocations: 35.78 kB / 246.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.01252, allocations: 0 / 246.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.01253, allocations: 0 / 246.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.01253, allocations: 4 kB / 246.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.01254, allocations: 0 / 246.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.01266, allocations: 108.5 kB / 247 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.01269, allocations: 11.94 kB / 247 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.4e-05/0.01275, allocations: 0 / 247 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.0128, allocations: 11.98 kB / 247 MB, free: 14.81 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.01281, allocations: 4 kB / 247 MB, free: 14.81 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001218/0.01294, allocations: 105.5 kB / 247.1 MB, free: 14.7 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01294, allocations: 0 / 247.1 MB, free: 14.7 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002395/0.01318, allocations: 31.94 kB / 247.1 MB, free: 14.67 MB / 250.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.001882/0.01506, allocations: 0.5687 MB / 247.7 MB, free: 14.37 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001357/0.01519, allocations: 44.75 kB / 247.7 MB, free: 14.32 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/0.0152, allocations: 7.938 kB / 247.7 MB, free: 14.32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.758e-05/0.01526, allocations: 24.84 kB / 247.8 MB, free: 14.29 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.01567, allocations: 345 kB / 248.1 MB, free: 13.9 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007532/0.01642, allocations: 320.4 kB / 248.4 MB, free: 13.55 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.389e-05/0.01649, allocations: 84.16 kB / 248.5 MB, free: 13.45 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.225e-05/0.01656, allocations: 21.48 kB / 248.5 MB, free: 13.43 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.01669, allocations: 79.36 kB / 248.6 MB, free: 13.36 MB / 250.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01669, allocations: 3.938 kB / 248.6 MB, free: 13.35 MB / 250.7 MB Notification: Performance of Templates: time 0.007256/0.02394, allocations: 3.182 MB / 251.8 MB, free: 10.22 MB / 250.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.420060619711876]