Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.0009191/0.0009191, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009376/0.0009376, allocations: 143.4 kB / 24.89 MB, free: 8.727 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.9384/0.9384, allocations: 173.4 MB / 201.5 MB, free: 8.77 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.045e-05/2.185e-05, allocations: 10.25 kB / 268.5 MB, free: 5.977 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002373/0.002395, allocations: 1.643 MB / 270.2 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003552/0.00275, allocations: 147.4 kB / 270.3 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.535e-05/0.002835, allocations: 0 / 270.3 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.36e-05/0.002879, allocations: 3.938 kB / 270.3 MB, free: 4.176 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001373/0.003016, allocations: 15.86 kB / 270.3 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.00322, allocations: 39.84 kB / 270.4 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.772e-05/0.003308, allocations: 27.92 kB / 270.4 MB, free: 4.094 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.025e-05/0.003388, allocations: 19.97 kB / 270.4 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.4e-05/0.003442, allocations: 19.92 kB / 270.4 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.215e-05/0.003484, allocations: 7.984 kB / 270.4 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.003503, allocations: 3.938 kB / 270.4 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.003513, allocations: 4 kB / 270.5 MB, free: 4.039 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.646e-05/0.00356, allocations: 8 kB / 270.5 MB, free: 4.031 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.685e-05/0.003587, allocations: 15.92 kB / 270.5 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.003703, allocations: 39.78 kB / 270.5 MB, free: 3.977 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.003706, allocations: 0 / 270.5 MB, free: 3.977 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.003708, allocations: 0 / 270.5 MB, free: 3.977 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.003712, allocations: 0 / 270.5 MB, free: 3.977 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003559/0.004068, allocations: 272.7 kB / 270.8 MB, free: 3.684 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.004105, allocations: 8.922 kB / 270.8 MB, free: 3.676 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.004134, allocations: 8.922 kB / 270.8 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.004286, allocations: 129.7 kB / 270.9 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.004296, allocations: 4.375 kB / 270.9 MB, free: 3.512 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.444e-06/0.004304, allocations: 4.375 kB / 270.9 MB, free: 3.508 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.00449, allocations: 118.2 kB / 271 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.004497, allocations: 4.125 kB / 271.1 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-06/0.004504, allocations: 4.375 kB / 271.1 MB, free: 3.363 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.81e-06/0.004509, allocations: 384 / 271.1 MB, free: 3.363 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.445e-05/0.004523, allocations: 7.938 kB / 271.1 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.0047, allocations: 161 kB / 271.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.004802, allocations: 49.17 kB / 271.3 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.158e-05/0.004824, allocations: 17.78 kB / 271.3 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.004836, allocations: 0 / 271.3 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.004859, allocations: 42.5 kB / 271.3 MB, free: 3.039 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.00486, allocations: 0 / 271.3 MB, free: 3.039 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.000114/0.004974, allocations: 49.61 kB / 271.4 MB, free: 2.984 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.005016, allocations: 89.05 kB / 271.5 MB, free: 2.879 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.138e-05/0.005078, allocations: 122.7 kB / 271.6 MB, free: 2.746 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.749e-06/0.005087, allocations: 29.69 kB / 271.6 MB, free: 2.711 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.963e-05/0.005117, allocations: 88.05 kB / 271.7 MB, free: 2.621 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.34e-05/0.00513, allocations: 0 / 271.7 MB, free: 2.621 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.461e-05/0.005155, allocations: 21.66 kB / 271.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.072e-05/0.005226, allocations: 314.8 kB / 272 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.272e-06/0.005232, allocations: 4.125 kB / 272 MB, free: 2.273 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.472e-06/0.005239, allocations: 0 / 272 MB, free: 2.273 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.052e-05/0.005259, allocations: 16.84 kB / 272 MB, free: 2.254 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.005261, allocations: 0 / 272 MB, free: 2.254 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.839e-05/0.005299, allocations: 33.64 kB / 272.1 MB, free: 2.215 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.005311, allocations: 8 kB / 272.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.005316, allocations: 0 / 272.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.005325, allocations: 0 / 272.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.782e-05/0.005363, allocations: 11.92 kB / 272.1 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.005366, allocations: 96 / 272.1 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.178e-05/0.005377, allocations: 4 kB / 272.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-06/0.005381, allocations: 0 / 272.1 MB, free: 2.191 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 5.608e-05/0.005438, allocations: 112.7 kB / 272.2 MB, free: 2.07 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.005474, allocations: 37.69 kB / 272.2 MB, free: 2.027 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.462e-05/0.005499, allocations: 8.344 kB / 272.3 MB, free: 2.016 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.005502, allocations: 7.938 kB / 272.3 MB, free: 2.008 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.005504, allocations: 3.938 kB / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.005507, allocations: 4.172 kB / 272.3 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.033e-05/0.005588, allocations: 73.88 kB / 272.3 MB, free: 1.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.005589, allocations: 0 / 272.3 MB, free: 1.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.67e-05/0.005616, allocations: 15.98 kB / 272.4 MB, free: 1.895 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.005618, allocations: 3.984 kB / 272.4 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-06/0.005622, allocations: 0 / 272.4 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.005622, allocations: 0 / 272.4 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.005623, allocations: 4 kB / 272.4 MB, free: 1.887 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.294e-05/0.005696, allocations: 140.3 kB / 272.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.514e-05/0.005721, allocations: 11.95 kB / 272.5 MB, free: 1.719 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-06/0.005729, allocations: 4 kB / 272.5 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.704e-05/0.005756, allocations: 3.938 kB / 272.5 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.193e-05/0.005778, allocations: 0 / 272.5 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.005784, allocations: 12.02 kB / 272.5 MB, free: 1.699 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.985e-05/0.005804, allocations: 28.16 kB / 272.6 MB, free: 1.672 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005804, allocations: 0 / 272.6 MB, free: 1.672 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001193/0.005923, allocations: 4 kB / 272.6 MB, free: 1.668 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 7.872e-05/0.006002, allocations: 84.34 kB / 272.7 MB, free: 1.578 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.227e-05/0.006054, allocations: 12.86 kB / 272.7 MB, free: 1.562 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.006056, allocations: 0 / 272.7 MB, free: 1.562 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.013e-05/0.006066, allocations: 8.797 kB / 272.7 MB, free: 1.551 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.00625, allocations: 32.55 kB / 272.7 MB, free: 1.52 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002193/0.006469, allocations: 151.2 kB / 272.9 MB, free: 1.344 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.354e-05/0.006502, allocations: 59.36 kB / 272.9 MB, free: 1.266 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.685e-05/0.006519, allocations: 3.984 kB / 272.9 MB, free: 1.262 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.083e-05/0.00656, allocations: 51.38 kB / 273 MB, free: 1.211 MB / 250.7 MB Notification: Performance of SimCode: time 4.81e-07/0.006561, allocations: 4 kB / 273 MB, free: 1.207 MB / 250.7 MB Notification: Performance of Templates: time 0.002038/0.008598, allocations: 0.5415 MB / 273.5 MB, free: 0.6719 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.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.520154637284577]