Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.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.001354/0.001354, allocations: 84.08 kB / 20.68 MB, free: 1.027 MB / 14.72 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.001437/0.001437, allocations: 167.2 kB / 23.96 MB, free: 4.152 MB / 14.72 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.453/1.453, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 325 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.335e-05/2.501e-05, allocations: 2.281 kB / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001999/0.002024, allocations: 1.212 MB / 326.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003501/0.005525, allocations: 2.111 MB / 328.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.066e-05/0.005546, allocations: 0 / 328.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.411e-05/0.00556, allocations: 1.125 kB / 328.3 MB, free: 14.31 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001342/0.006902, allocations: 475.1 kB / 328.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.078e-05/0.006933, allocations: 5.734 kB / 328.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.675e-05/0.006989, allocations: 9.312 kB / 328.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.196e-05/0.007031, allocations: 6.016 kB / 328.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.56e-05/0.007067, allocations: 9.141 kB / 328.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008064/0.01513, allocations: 8.359 kB / 328.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/0.01515, allocations: 0 / 328.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001551/0.0167, allocations: 495.6 kB / 329.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.687e-05/0.01672, allocations: 5.812 kB / 329.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.926e-05/0.01675, allocations: 1.75 kB / 329.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.01808, allocations: 464.1 kB / 329.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.01808, allocations: 0 / 329.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.01809, allocations: 5.812 kB / 329.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.01809, allocations: 0 / 329.8 MB, free: 13.77 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007898/0.01888, allocations: 344.8 kB / 330.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.01893, allocations: 10.03 kB / 330.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.667e-05/0.01903, allocations: 81.84 kB / 330.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.01924, allocations: 187.4 kB / 330.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.046e-05/0.01932, allocations: 152.7 kB / 330.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.01939, allocations: 152.1 kB / 330.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.632e-05/0.01947, allocations: 102.2 kB / 330.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.846e-05/0.01951, allocations: 84.34 kB / 330.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.84e-05/0.01958, allocations: 151.6 kB / 331 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.565e-05/0.01964, allocations: 151.3 kB / 331.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.47e-05/0.01971, allocations: 159.7 kB / 331.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003083/0.02001, allocations: 395.3 kB / 331.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.02012, allocations: 167.9 kB / 331.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.14e-05/0.02016, allocations: 88.69 kB / 332 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.605e-05/0.02019, allocations: 76.56 kB / 332 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/0.02031, allocations: 43.44 kB / 332.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.525e-06/0.02031, allocations: 3.938 kB / 332.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001393/0.02045, allocations: 40.09 kB / 332.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.02049, allocations: 52.69 kB / 332.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.706e-05/0.02059, allocations: 106.3 kB / 332.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.02061, allocations: 26.86 kB / 332.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.571e-05/0.02065, allocations: 85.84 kB / 332.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.316e-05/0.02067, allocations: 0.5156 kB / 332.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.02069, allocations: 12.45 kB / 332.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.02083, allocations: 313 kB / 332.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.697e-06/0.02084, allocations: 1.281 kB / 332.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.13e-06/0.02084, allocations: 1.094 kB / 332.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.313e-05/0.02087, allocations: 7.594 kB / 332.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.02087, allocations: 0 / 332.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.996e-05/0.02094, allocations: 53.17 kB / 332.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.02095, allocations: 5.375 kB / 332.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.02096, allocations: 3.938 kB / 332.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.02097, allocations: 1.938 kB / 332.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.12e-05/0.021, allocations: 0 / 332.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.021, allocations: 5.062 kB / 332.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.76e-05/0.02102, allocations: 0.6094 kB / 332.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-06/0.02103, allocations: 1.031 kB / 332.8 MB, free: 10.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * 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 8.211e-05/0.02111, allocations: 108.7 kB / 332.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.02112, allocations: 1.578 kB / 332.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.377e-05/0.02115, allocations: 17.41 kB / 332.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.02116, allocations: 0 / 332.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.02116, allocations: 1.156 kB / 332.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.02116, allocations: 0 / 332.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.02128, allocations: 103.2 kB / 333 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.02128, allocations: 0 / 333 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-06/0.02129, allocations: 0.5156 kB / 333 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.02129, allocations: 5.047 kB / 333 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.0213, allocations: 0.5625 kB / 333 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.0213, allocations: 5.062 kB / 333 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.02131, allocations: 4 kB / 333 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.768e-05/0.02139, allocations: 59.28 kB / 333.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-06/0.0214, allocations: 5.641 kB / 333.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.02142, allocations: 1.719 kB / 333.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.496e-05/0.02143, allocations: 3.938 kB / 333.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.02145, allocations: 1.781 kB / 333.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.02145, allocations: 1.062 kB / 333.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.979e-05/0.0215, allocations: 81.38 kB / 333.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.0215, allocations: 0 / 333.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006593/0.02216, allocations: 157.3 kB / 333.3 MB, free: 10.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.001575/0.02374, allocations: 0.5371 MB / 333.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.161e-05/0.02381, allocations: 7.016 kB / 333.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.02382, allocations: 1.188 kB / 333.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.06e-05/0.02383, allocations: 5.031 kB / 333.9 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001546/0.02398, allocations: 10.25 kB / 333.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002865/0.02427, allocations: 94.62 kB / 334 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.358e-05/0.02432, allocations: 60.34 kB / 334.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.779e-05/0.02436, allocations: 9.266 kB / 334.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.066e-05/0.02439, allocations: 12.81 kB / 334.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.02439, allocations: 0 / 334.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of Templates: time 0.007662/0.03205, allocations: 3.196 MB / 337.3 MB, free: 8.125 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.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.326025482267141]