Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.0009382/0.0009382, allocations: 80.62 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.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.001228/0.001228, allocations: 145.2 kB / 25.6 MB, free: 8.93 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.9375/0.9375, allocations: 173.4 MB / 202.3 MB, free: 8.289 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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 269.2 MB, free: 9.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.872e-05, allocations: 2.312 kB / 269.2 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002113/0.002131, allocations: 1.623 MB / 270.8 MB, free: 8.121 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000601/0.002732, allocations: 460.8 kB / 271.3 MB, free: 7.668 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.223e-05/0.002805, allocations: 0 / 271.3 MB, free: 7.668 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.508e-05/0.00285, allocations: 7.875 kB / 271.3 MB, free: 7.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.002971, allocations: 20.91 kB / 271.3 MB, free: 7.641 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.003177, allocations: 48.52 kB / 271.4 MB, free: 7.594 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.089e-05/0.003268, allocations: 47.8 kB / 271.4 MB, free: 7.547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.349e-05/0.003362, allocations: 8.859 kB / 271.4 MB, free: 7.539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.411e-05/0.003436, allocations: 31.91 kB / 271.5 MB, free: 7.508 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.491e-05/0.003481, allocations: 16.67 kB / 271.5 MB, free: 7.492 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.003497, allocations: 4 kB / 271.5 MB, free: 7.488 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.979e-06/0.003507, allocations: 4.5 kB / 271.5 MB, free: 7.484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.083e-05/0.003548, allocations: 18.66 kB / 271.5 MB, free: 7.469 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.7e-05/0.003565, allocations: 7.938 kB / 271.5 MB, free: 7.461 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.99e-05/0.003655, allocations: 43.77 kB / 271.5 MB, free: 7.418 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.003657, allocations: 0 / 271.5 MB, free: 7.418 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.003658, allocations: 0 / 271.5 MB, free: 7.418 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.003662, allocations: 4 kB / 271.5 MB, free: 7.414 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.0003735/0.004035, allocations: 400.3 kB / 271.9 MB, free: 6.988 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.004076, allocations: 12.98 kB / 272 MB, free: 6.977 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.004111, allocations: 16.84 kB / 272 MB, free: 6.961 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.004297, allocations: 148.9 kB / 272.1 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.616e-06/0.004305, allocations: 384 / 272.1 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.997e-06/0.004314, allocations: 8.359 kB / 272.1 MB, free: 6.781 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.004496, allocations: 129.3 kB / 272.2 MB, free: 6.625 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.004504, allocations: 4.125 kB / 272.3 MB, free: 6.621 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.004512, allocations: 4.125 kB / 272.3 MB, free: 6.617 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.004518, allocations: 4 kB / 272.3 MB, free: 6.613 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.742e-05/0.004535, allocations: 11.98 kB / 272.3 MB, free: 6.602 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002246/0.00476, allocations: 251.8 kB / 272.5 MB, free: 6.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.989e-05/0.00483, allocations: 93.23 kB / 272.6 MB, free: 6.191 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.452e-05/0.004854, allocations: 27.12 kB / 272.6 MB, free: 6.152 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.004876, allocations: 0 / 272.6 MB, free: 6.152 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.004901, allocations: 37.39 kB / 272.7 MB, free: 6.105 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.004902, allocations: 0 / 272.7 MB, free: 6.105 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001459/0.005048, allocations: 69.77 kB / 272.7 MB, free: 6.031 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.005105, allocations: 110.9 kB / 272.8 MB, free: 5.898 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.669e-05/0.005202, allocations: 200.4 kB / 273 MB, free: 5.688 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.005212, allocations: 25.7 kB / 273.1 MB, free: 5.656 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.581e-05/0.005258, allocations: 130.9 kB / 273.2 MB, free: 5.523 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.321e-05/0.005271, allocations: 15.88 kB / 273.2 MB, free: 5.508 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.005296, allocations: 23.31 kB / 273.2 MB, free: 5.477 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.005397, allocations: 0.4884 MB / 273.7 MB, free: 4.977 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.343e-06/0.005404, allocations: 0 / 273.7 MB, free: 4.977 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.021e-06/0.00541, allocations: 0 / 273.7 MB, free: 4.977 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.183e-05/0.005432, allocations: 15.75 kB / 273.7 MB, free: 4.957 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.005433, allocations: 3.938 kB / 273.7 MB, free: 4.953 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.456e-05/0.005478, allocations: 41.64 kB / 273.8 MB, free: 4.906 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.005488, allocations: 7.938 kB / 273.8 MB, free: 4.898 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.005492, allocations: 0 / 273.8 MB, free: 4.898 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.173e-06/0.005499, allocations: 0 / 273.8 MB, free: 4.898 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.434e-05/0.005553, allocations: 4 kB / 273.8 MB, free: 4.895 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-06/0.005556, allocations: 0 / 273.8 MB, free: 4.895 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.543e-05/0.005571, allocations: 3.984 kB / 273.8 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-06/0.005575, allocations: 0 / 273.8 MB, free: 4.891 MB / 250.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.031e-05/0.005636, allocations: 160.6 kB / 274 MB, free: 4.723 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.005678, allocations: 49.59 kB / 274 MB, free: 4.668 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.504e-05/0.005703, allocations: 23.84 kB / 274 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.005705, allocations: 0 / 274 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.005707, allocations: 0 / 274 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.005712, allocations: 4 kB / 274 MB, free: 4.637 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.237e-05/0.005804, allocations: 109.2 kB / 274.1 MB, free: 4.504 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.52e-07/0.005805, allocations: 0 / 274.1 MB, free: 4.504 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.34e-05/0.005838, allocations: 8 kB / 274.1 MB, free: 4.496 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.00584, allocations: 0 / 274.1 MB, free: 4.496 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.005845, allocations: 8.047 kB / 274.2 MB, free: 4.488 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.005847, allocations: 4 kB / 274.2 MB, free: 4.484 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.005849, allocations: 7.875 kB / 274.2 MB, free: 4.477 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.722e-05/0.005947, allocations: 203.3 kB / 274.4 MB, free: 4.25 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.005973, allocations: 11.94 kB / 274.4 MB, free: 4.238 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-06/0.005982, allocations: 0 / 274.4 MB, free: 4.238 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.288e-05/0.006055, allocations: 8 kB / 274.4 MB, free: 4.23 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.513e-05/0.00608, allocations: 7.922 kB / 274.4 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-06/0.006084, allocations: 4 kB / 274.4 MB, free: 4.219 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.874e-05/0.006132, allocations: 139.2 kB / 274.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006132, allocations: 4.031 kB / 274.5 MB, free: 4.078 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001309/0.006263, allocations: 4 kB / 274.5 MB, free: 4.074 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: 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.82e-05/0.006331, allocations: 103.2 kB / 274.6 MB, free: 3.965 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.013e-05/0.006392, allocations: 19.61 kB / 274.7 MB, free: 3.941 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.006393, allocations: 4 kB / 274.7 MB, free: 3.938 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.119e-05/0.006405, allocations: 7.688 kB / 274.7 MB, free: 3.926 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.006627, allocations: 29.05 kB / 274.7 MB, free: 3.895 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003244/0.006952, allocations: 195.4 kB / 274.9 MB, free: 3.672 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.232e-05/0.006994, allocations: 63.34 kB / 275 MB, free: 3.59 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.022e-05/0.007014, allocations: 7.891 kB / 275 MB, free: 3.582 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.095e-05/0.007065, allocations: 82.19 kB / 275 MB, free: 3.5 MB / 250.7 MB Notification: Performance of SimCode: time 6.72e-07/0.007066, allocations: 0 / 275 MB, free: 3.5 MB / 250.7 MB Notification: Performance of Templates: time 0.001962/0.009028, allocations: 0.6844 MB / 275.7 MB, free: 2.832 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.678622883744538]