Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.001312/0.001312, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001433/0.001433, allocations: 165 kB / 24.56 MB, free: 16 kB / 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 1.006/1.006, allocations: 177.1 MB / 205 MB, free: 5.617 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.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032e-05/1.171e-05, allocations: 2.312 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002512/0.002523, allocations: 2.457 MB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000708/0.003231, allocations: 0.6464 MB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.587e-05/0.003307, allocations: 7.938 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.494e-05/0.003402, allocations: 39.64 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.65e-05/0.003489, allocations: 71.3 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001814/0.00367, allocations: 75.83 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.00386, allocations: 262.7 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.003967, allocations: 73.69 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.004123, allocations: 159.6 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.765e-05/0.00422, allocations: 79.77 kB / 276.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.004245, allocations: 24 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.466e-05/0.00429, allocations: 20 kB / 276.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.643e-05/0.004316, allocations: 47.83 kB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.78e-05/0.004374, allocations: 91.75 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001711/0.004545, allocations: 175.3 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.343e-06/0.004546, allocations: 0 / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.004547, allocations: 0 / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.906e-06/0.00455, allocations: 0 / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0004541/0.005004, allocations: 0.5507 MB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.589e-05/0.00503, allocations: 8.031 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.005174, allocations: 60.73 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.005339, allocations: 192.2 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.005352, allocations: 16.88 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.00538, allocations: 24.38 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.005595, allocations: 189.1 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.005606, allocations: 4.188 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.005621, allocations: 11.94 kB / 278.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.005629, allocations: 7.938 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.005748, allocations: 83.86 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006256/0.006374, allocations: 0.7385 MB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.006584, allocations: 154 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.006689, allocations: 79.33 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.006704, allocations: 4 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.006722, allocations: 33.39 kB / 279.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.006724, allocations: 0 / 279.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007894/0.007513, allocations: 0.6223 MB / 279.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.007542, allocations: 89.03 kB / 280 MB, free: 10.22 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.803e-05/0.00764, allocations: 213.9 kB / 280.2 MB, free: 9.996 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.007653, allocations: 33.7 kB / 280.3 MB, free: 9.957 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.689e-05/0.00772, allocations: 199.1 kB / 280.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.534e-05/0.007765, allocations: 91.19 kB / 280.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.948e-05/0.007815, allocations: 51.36 kB / 280.6 MB, free: 9.609 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003642/0.008179, allocations: 0.504 MB / 281.1 MB, free: 9.094 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.408e-05/0.008233, allocations: 31.97 kB / 281.1 MB, free: 9.062 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.485e-05/0.008308, allocations: 91.47 kB / 281.2 MB, free: 8.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.008447, allocations: 141.8 kB / 281.4 MB, free: 8.797 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.008449, allocations: 0 / 281.4 MB, free: 8.797 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000199/0.008648, allocations: 197.3 kB / 281.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.008658, allocations: 4 kB / 281.5 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.008664, allocations: 7.938 kB / 281.6 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.796e-06/0.008672, allocations: 0 / 281.6 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.008808, allocations: 63.91 kB / 281.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.008813, allocations: 4 kB / 281.6 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.497e-05/0.008858, allocations: 8 kB / 281.6 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.008867, allocations: 4 kB / 281.6 MB, free: 8.508 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * 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 7.532e-05/0.008943, allocations: 176.5 kB / 281.8 MB, free: 8.324 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.008983, allocations: 35.84 kB / 281.8 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.009014, allocations: 29.75 kB / 281.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.009016, allocations: 4 kB / 281.9 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.00902, allocations: 0 / 281.9 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.009023, allocations: 3.984 kB / 281.9 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.009453, allocations: 0.5078 MB / 282.4 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.009454, allocations: 0 / 282.4 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.009589, allocations: 60 kB / 282.4 MB, free: 7.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.009591, allocations: 8 kB / 282.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.009605, allocations: 11.98 kB / 282.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.009607, allocations: 0 / 282.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.00961, allocations: 7.938 kB / 282.5 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.009934, allocations: 498.6 kB / 283 MB, free: 7.082 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.742e-05/0.009951, allocations: 19.86 kB / 283 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.009971, allocations: 8 kB / 283 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.455e-05/0.01006, allocations: 8 kB / 283 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.01009, allocations: 27.88 kB / 283 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.0101, allocations: 12 kB / 283 MB, free: 7.008 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.003e-05/0.01016, allocations: 163.7 kB / 283.2 MB, free: 6.848 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01016, allocations: 0 / 283.2 MB, free: 6.848 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002016/0.01036, allocations: 55.94 kB / 283.2 MB, free: 6.793 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * 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.623e-05/0.01043, allocations: 99.25 kB / 283.3 MB, free: 6.688 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001657/0.0106, allocations: 129.4 kB / 283.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-06/0.0106, allocations: 0 / 283.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.342e-05/0.01067, allocations: 80.44 kB / 283.6 MB, free: 6.477 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.01094, allocations: 44.12 kB / 283.6 MB, free: 6.434 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000766/0.01171, allocations: 0.5947 MB / 284.2 MB, free: 5.785 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.044e-05/0.01176, allocations: 91.91 kB / 284.3 MB, free: 5.676 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.376e-05/0.01181, allocations: 17.95 kB / 284.3 MB, free: 5.656 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.215e-05/0.01186, allocations: 20.5 kB / 284.3 MB, free: 5.637 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01186, allocations: 0 / 284.3 MB, free: 5.637 MB / 266.7 MB Notification: Performance of Templates: time 0.003464/0.01532, allocations: 2.104 MB / 286.4 MB, free: 3.566 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.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.7125835181213915]