Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.0009409/0.0009409, allocations: 80.31 kB / 22.21 MB, free: 2.293 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.00104/0.00104, allocations: 170.4 kB / 25.61 MB, free: 8.914 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.9225/0.9225, allocations: 177.1 MB / 206 MB, free: 4.5 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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.163e-05/2.274e-05, allocations: 2.312 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002351/0.002374, allocations: 1.624 MB / 275.8 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007691/0.003143, allocations: 0.516 MB / 276.3 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.003246, allocations: 7.938 kB / 276.4 MB, free: 2.254 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.69e-05/0.003303, allocations: 5.906 kB / 276.4 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.003454, allocations: 11.88 kB / 276.4 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002678/0.003722, allocations: 63.73 kB / 276.4 MB, free: 2.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.003827, allocations: 51.78 kB / 276.5 MB, free: 2.125 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.52e-05/0.003923, allocations: 12.62 kB / 276.5 MB, free: 2.113 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.004045, allocations: 40.73 kB / 276.5 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.304e-05/0.004098, allocations: 19.92 kB / 276.6 MB, free: 2.055 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.004114, allocations: 0.625 kB / 276.6 MB, free: 2.055 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.854e-05/0.004152, allocations: 8 kB / 276.6 MB, free: 2.047 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.85e-05/0.004201, allocations: 14.45 kB / 276.6 MB, free: 2.035 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.145e-05/0.004222, allocations: 15.92 kB / 276.6 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.004344, allocations: 43.83 kB / 276.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.004347, allocations: 0 / 276.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.004348, allocations: 0 / 276.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.004352, allocations: 3.938 kB / 276.6 MB, free: 1.973 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004004/0.004752, allocations: 406.2 kB / 277 MB, free: 1.543 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.004789, allocations: 8.031 kB / 277 MB, free: 1.535 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.004905, allocations: 24.88 kB / 277.1 MB, free: 1.512 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.00508, allocations: 157.4 kB / 277.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.005094, allocations: 9.031 kB / 277.2 MB, free: 1.324 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.005104, allocations: 4.375 kB / 277.2 MB, free: 1.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.005298, allocations: 133 kB / 277.4 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.005308, allocations: 0 / 277.4 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.005315, allocations: 0 / 277.4 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.005322, allocations: 0 / 277.4 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.968e-05/0.005342, allocations: 11.94 kB / 277.4 MB, free: 1.148 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002161/0.005558, allocations: 255.8 kB / 277.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.383e-05/0.005632, allocations: 81.19 kB / 277.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.995e-05/0.005661, allocations: 39.17 kB / 277.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.005677, allocations: 3.938 kB / 277.8 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.005702, allocations: 45.33 kB / 277.8 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.005703, allocations: 0 / 277.8 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.000142/0.005845, allocations: 61.58 kB / 277.9 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.005898, allocations: 102.8 kB / 278 MB, free: 456 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.541e-05/0.005993, allocations: 207.8 kB / 278.2 MB, free: 232 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.757e-06/0.006002, allocations: 26.08 kB / 278.2 MB, free: 200 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.118e-05/0.006053, allocations: 146.7 kB / 278.3 MB, free: 48 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.006069, allocations: 3.984 kB / 278.3 MB, free: 44 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.006094, allocations: 19.36 kB / 278.3 MB, free: 16 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.006231, allocations: 0.4883 MB / 278.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-06/0.00624, allocations: 0 / 278.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-06/0.006247, allocations: 0 / 278.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.19e-05/0.006269, allocations: 11.69 kB / 278.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.006272, allocations: 3.938 kB / 278.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.773e-05/0.006319, allocations: 45.64 kB / 278.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.00633, allocations: 8.094 kB / 278.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.006334, allocations: 0 / 278.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.256e-06/0.006343, allocations: 0 / 278.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.824e-05/0.006391, allocations: 4 kB / 278.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.006396, allocations: 7.922 kB / 278.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.372e-05/0.00641, allocations: 0 / 278.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.006415, allocations: 0 / 278.9 MB, free: 15.43 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 6.594e-05/0.006481, allocations: 168.5 kB / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.185e-05/0.006523, allocations: 41.66 kB / 279.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.006551, allocations: 20.02 kB / 279.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.006553, allocations: 0 / 279.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.006556, allocations: 4 kB / 279.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.006559, allocations: 0 / 279.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.237e-05/0.006652, allocations: 113.2 kB / 279.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.006652, allocations: 0 / 279.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-05/0.006679, allocations: 12 kB / 279.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.006682, allocations: 7.922 kB / 279.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-06/0.006688, allocations: 4 kB / 279.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.006689, allocations: 0 / 279.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.00669, allocations: 3.984 kB / 279.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.772e-05/0.006778, allocations: 203.3 kB / 279.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.625e-05/0.006804, allocations: 19.88 kB / 279.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.889e-06/0.006814, allocations: 7.938 kB / 279.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.06e-05/0.006845, allocations: 0 / 279.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.225e-05/0.006867, allocations: 4 kB / 279.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.006871, allocations: 7.922 kB / 279.5 MB, free: 14.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.801e-05/0.006919, allocations: 146.2 kB / 279.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006919, allocations: 0 / 279.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001466/0.007066, allocations: 8 kB / 279.7 MB, free: 14.6 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 6.893e-05/0.007135, allocations: 99.22 kB / 279.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.355e-05/0.007198, allocations: 19.67 kB / 279.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.007199, allocations: 0 / 279.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.257e-05/0.007212, allocations: 11.62 kB / 279.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.007443, allocations: 35.14 kB / 279.8 MB, free: 14.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000359/0.007802, allocations: 188.8 kB / 280 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.489e-05/0.007836, allocations: 63.2 kB / 280.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.924e-05/0.007856, allocations: 4 kB / 280.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.452e-05/0.00791, allocations: 78.19 kB / 280.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.007911, allocations: 0 / 280.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of Templates: time 0.002251/0.01016, allocations: 0.6824 MB / 280.8 MB, free: 13.36 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/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.5351630789227784]