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.001107/0.001107, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001196/0.001196, allocations: 148.9 kB / 24.81 MB, free: 9.27 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.9883/0.9883, allocations: 173.3 MB / 201.4 MB, free: 9.238 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 2.104e-06/2.104e-06, allocations: 0 / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.542e-05/1.752e-05, allocations: 2.312 kB / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002722/0.002739, allocations: 1.901 MB / 270.3 MB, free: 4.309 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.004495, allocations: 1.09 MB / 271.4 MB, free: 3.211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.004649, allocations: 7.938 kB / 271.4 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003706/0.00502, allocations: 63.66 kB / 271.5 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002802/0.0053, allocations: 95.47 kB / 271.6 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006841/0.005984, allocations: 263 kB / 271.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000243/0.006227, allocations: 167.5 kB / 272 MB, free: 2.625 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.006338, allocations: 21.78 kB / 272 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.00648, allocations: 99.67 kB / 272.1 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.006583, allocations: 63.86 kB / 272.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.006607, allocations: 8 kB / 272.2 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.006764, allocations: 79.81 kB / 272.2 MB, free: 2.355 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.477e-05/0.006849, allocations: 55.83 kB / 272.3 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.297e-05/0.006902, allocations: 39.86 kB / 272.3 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000338/0.00724, allocations: 187.2 kB / 272.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.007242, allocations: 0 / 272.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.007244, allocations: 0 / 272.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.007249, allocations: 0 / 272.5 MB, free: 2.078 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.0005854/0.007834, allocations: 0.5594 MB / 273.1 MB, free: 1.477 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.00788, allocations: 8.031 kB / 273.1 MB, free: 1.469 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.997e-05/0.00794, allocations: 32.75 kB / 273.1 MB, free: 1.438 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.008287, allocations: 219.6 kB / 273.3 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.008304, allocations: 8.312 kB / 273.3 MB, free: 1.188 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.008316, allocations: 8.375 kB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.008518, allocations: 153.2 kB / 273.5 MB, free: 1 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.008526, allocations: 3.938 kB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-06/0.008535, allocations: 0 / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.008541, allocations: 8 kB / 273.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.658e-05/0.008578, allocations: 19.91 kB / 273.5 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003512/0.008929, allocations: 315.7 kB / 273.8 MB, free: 0.625 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.009067, allocations: 117.3 kB / 274 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.02e-05/0.009107, allocations: 46.98 kB / 274 MB, free: 424 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.009127, allocations: 3.938 kB / 274 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.965e-05/0.009227, allocations: 76.98 kB / 274.1 MB, free: 328 kB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.472e-06/0.009229, allocations: 0 / 274.1 MB, free: 328 kB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002218/0.00945, allocations: 113.6 kB / 274.2 MB, free: 208 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.009505, allocations: 114.8 kB / 274.3 MB, free: 68 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.009711, allocations: 308.3 kB / 274.6 MB, free: 15.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.009739, allocations: 29.7 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.876e-05/0.009828, allocations: 182.8 kB / 274.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.009852, allocations: 19.83 kB / 274.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.009891, allocations: 31.61 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004687/0.01036, allocations: 0.5157 MB / 275.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.028e-05/0.01038, allocations: 8 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.882e-05/0.01043, allocations: 64.81 kB / 275.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.433e-05/0.01048, allocations: 39.2 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.01049, allocations: 4 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.703e-05/0.01058, allocations: 85.52 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.01059, allocations: 4 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.0106, allocations: 0 / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.01061, allocations: 4.062 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.382e-05/0.01067, allocations: 15.94 kB / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.675e-06/0.01067, allocations: 0 / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.572e-05/0.01072, allocations: 11.94 kB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.01073, allocations: 0 / 275.6 MB, free: 14.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 8.414e-05/0.01081, allocations: 162.2 kB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.786e-05/0.01087, allocations: 73.42 kB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001286/0.011, allocations: 91.44 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.011, allocations: 4 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.011, allocations: 4.062 kB / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.01101, allocations: 0 / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.01113, allocations: 149.2 kB / 276.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.01113, allocations: 0 / 276.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.012e-05/0.01117, allocations: 15.94 kB / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.01118, allocations: 7.875 kB / 276.1 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.01119, allocations: 8 kB / 276.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.01119, allocations: 8.047 kB / 276.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01119, allocations: 0 / 276.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001223/0.01132, allocations: 143.6 kB / 276.3 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.01137, allocations: 43.78 kB / 276.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.01139, allocations: 3.938 kB / 276.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.088e-05/0.01142, allocations: 8 kB / 276.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.01146, allocations: 7.984 kB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.01148, allocations: 7.984 kB / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000111/0.01159, allocations: 213 kB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01159, allocations: 0 / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002367/0.01183, allocations: 31.98 kB / 276.6 MB, free: 13.63 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.0009833/0.01281, allocations: 398.2 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.01294, allocations: 47.58 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.01294, allocations: 0 / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.323e-05/0.01298, allocations: 31.73 kB / 277 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.01325, allocations: 67.91 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004449/0.01369, allocations: 330 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.691e-05/0.01375, allocations: 83.81 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.155e-05/0.0138, allocations: 17.48 kB / 277.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.01391, allocations: 98.38 kB / 277.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01391, allocations: 4 kB / 277.6 MB, free: 12.65 MB / 266.7 MB Notification: Performance of Templates: time 0.005488/0.01939, allocations: 3.133 MB / 280.8 MB, free: 9.574 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 -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: 3.010455079842359]