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.001901/0.001901, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002086/0.002086, allocations: 169.3 kB / 24.28 MB, free: 148 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.549/1.549, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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 2.144e-06/2.144e-06, allocations: 0 / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.291e-05/3.506e-05, allocations: 2.312 kB / 272.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004254/0.004289, allocations: 2.429 MB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.005603, allocations: 0.6232 MB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.005721, allocations: 7.938 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.005879, allocations: 43.53 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.006054, allocations: 75.33 kB / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.006391, allocations: 79.83 kB / 275.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003956/0.006787, allocations: 270.6 kB / 275.8 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.006971, allocations: 69.62 kB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003023/0.007273, allocations: 151.7 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.007489, allocations: 79.72 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.398e-05/0.007543, allocations: 20 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.388e-05/0.007627, allocations: 28 kB / 276.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.976e-05/0.007686, allocations: 47.81 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.007796, allocations: 83.83 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000479/0.008275, allocations: 267 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.008282, allocations: 4 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.008284, allocations: 3.938 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.00829, allocations: 0 / 276.6 MB, free: 13.59 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.0009771/0.009267, allocations: 0.5582 MB / 277.1 MB, free: 13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.009302, allocations: 8.031 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.009575, allocations: 64.73 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.009883, allocations: 188.2 kB / 277.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.009917, allocations: 12.88 kB / 277.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.958e-05/0.009987, allocations: 28.31 kB / 277.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005108/0.0105, allocations: 228.3 kB / 277.6 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.01051, allocations: 192 / 277.6 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.01054, allocations: 11.94 kB / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.01055, allocations: 8 kB / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003266/0.01088, allocations: 135.9 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.01229, allocations: 0.7971 MB / 278.6 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004742/0.01277, allocations: 206 kB / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002549/0.01302, allocations: 107 kB / 278.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.01305, allocations: 8 kB / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.01308, allocations: 37.33 kB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.01308, allocations: 0 / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=26): time 0.002031/0.01512, allocations: 0.7281 MB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.117e-05/0.01519, allocations: 77.11 kB / 279.7 MB, free: 10.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002464/0.01543, allocations: 253.7 kB / 280 MB, free: 9.898 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.01546, allocations: 25.7 kB / 280 MB, free: 9.867 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.01561, allocations: 203.3 kB / 280.2 MB, free: 9.664 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.01572, allocations: 103.1 kB / 280.3 MB, free: 9.562 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.01585, allocations: 59.36 kB / 280.4 MB, free: 9.496 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002831/0.01613, allocations: 0.5118 MB / 280.9 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.01629, allocations: 59.97 kB / 280.9 MB, free: 8.914 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.0165, allocations: 119.4 kB / 281 MB, free: 8.777 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.01687, allocations: 213.8 kB / 281.3 MB, free: 8.551 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.01687, allocations: 4 kB / 281.3 MB, free: 8.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004946/0.01737, allocations: 249.3 kB / 281.5 MB, free: 8.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.01739, allocations: 8 kB / 281.5 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.01739, allocations: 3.938 kB / 281.5 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.01741, allocations: 4 kB / 281.5 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.01768, allocations: 55.91 kB / 281.6 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.01769, allocations: 4 kB / 281.6 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.01779, allocations: 8 kB / 281.6 MB, free: 8.215 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.708e-05/0.01782, allocations: 16.09 kB / 281.6 MB, free: 8.199 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 0.0001789/0.018, allocations: 184.5 kB / 281.8 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.335e-05/0.01809, allocations: 31.86 kB / 281.8 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.823e-05/0.01817, allocations: 29.75 kB / 281.8 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.391e-06/0.01818, allocations: 4 kB / 281.8 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.01818, allocations: 0 / 281.8 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.01819, allocations: 3.984 kB / 281.8 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009993/0.01919, allocations: 0.5821 MB / 282.4 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.01919, allocations: 0 / 282.4 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.01948, allocations: 59.91 kB / 282.5 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.01948, allocations: 4 kB / 282.5 MB, free: 7.242 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.0195, allocations: 4 kB / 282.5 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.0195, allocations: 4 kB / 282.5 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.0195, allocations: 0 / 282.5 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008278/0.02033, allocations: 0.5844 MB / 283.1 MB, free: 6.617 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.02038, allocations: 23.84 kB / 283.1 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.02041, allocations: 8.031 kB / 283.1 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.02056, allocations: 7.938 kB / 283.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.549e-05/0.02063, allocations: 19.97 kB / 283.1 MB, free: 6.559 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.02065, allocations: 12 kB / 283.2 MB, free: 6.547 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001533/0.02081, allocations: 175.6 kB / 283.3 MB, free: 6.375 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02081, allocations: 0 / 283.3 MB, free: 6.375 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003643/0.02117, allocations: 55.94 kB / 283.4 MB, free: 6.32 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 0.0001485/0.02132, allocations: 103.2 kB / 283.5 MB, free: 6.211 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004527/0.02177, allocations: 201.4 kB / 283.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.02177, allocations: 0 / 283.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.02198, allocations: 104.1 kB / 283.8 MB, free: 5.906 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/0.02249, allocations: 40.16 kB / 283.8 MB, free: 5.867 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.02373, allocations: 0.6219 MB / 284.4 MB, free: 5.195 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000163/0.02389, allocations: 141.8 kB / 284.6 MB, free: 5.039 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.02399, allocations: 21.94 kB / 284.6 MB, free: 5.016 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.781e-05/0.02406, allocations: 20.5 kB / 284.6 MB, free: 4.996 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02406, allocations: 0 / 284.6 MB, free: 4.996 MB / 266.7 MB Notification: Performance of Templates: time 0.006538/0.0306, allocations: 1.998 MB / 286.6 MB, free: 3.031 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.417809863924049]