Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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.0007818/0.0007818, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.000851/0.000851, allocations: 141.7 kB / 24.89 MB, free: 8.777 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.9494/0.9494, allocations: 173.4 MB / 201.5 MB, free: 8.758 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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 268.5 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.965e-05/2.109e-05, allocations: 2.312 kB / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002514/0.002535, allocations: 1.271 MB / 269.7 MB, free: 4.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002911/0.005446, allocations: 2.088 MB / 271.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.594e-05/0.005472, allocations: 0 / 271.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.005e-05/0.005492, allocations: 3.938 kB / 271.8 MB, free: 2.645 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.001147/0.006639, allocations: 386.4 kB / 272.2 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.205e-05/0.006661, allocations: 0 / 272.2 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.974e-05/0.006711, allocations: 15.91 kB / 272.2 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.834e-05/0.006749, allocations: 4 kB / 272.2 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.369e-05/0.006783, allocations: 0 / 272.2 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.514e-05/0.006838, allocations: 4 kB / 272.2 MB, free: 2.242 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.006849, allocations: 4 kB / 272.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007855/0.007635, allocations: 0.4992 MB / 272.7 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.292e-05/0.007647, allocations: 0 / 272.7 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.507e-05/0.007663, allocations: 0 / 272.7 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005482/0.008211, allocations: 430.9 kB / 273.2 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.008213, allocations: 0 / 273.2 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.008214, allocations: 0 / 273.2 MB, free: 1.316 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.008218, allocations: 0 / 273.2 MB, free: 1.316 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003611/0.008579, allocations: 303.9 kB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.008617, allocations: 8.922 kB / 273.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.008665, allocations: 84.22 kB / 273.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.008785, allocations: 193.3 kB / 273.7 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.717e-05/0.008833, allocations: 150.9 kB / 273.9 MB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.221e-05/0.008875, allocations: 150.9 kB / 274 MB, free: 404 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.72e-05/0.008932, allocations: 109.5 kB / 274.1 MB, free: 288 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.008956, allocations: 79.22 kB / 274.2 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.82e-05/0.009004, allocations: 154.6 kB / 274.4 MB, free: 52 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.794e-05/0.009062, allocations: 150.6 kB / 274.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.142e-05/0.009104, allocations: 150.6 kB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001945/0.009298, allocations: 353.3 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.899e-05/0.009377, allocations: 173.1 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.889e-05/0.009406, allocations: 84.14 kB / 275.3 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.009431, allocations: 75.28 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.568e-05/0.009517, allocations: 47.41 kB / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.833e-06/0.009519, allocations: 0 / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 9.704e-05/0.009616, allocations: 37.62 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.009652, allocations: 55.34 kB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.126e-05/0.009723, allocations: 106.7 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.009733, allocations: 25.7 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.44e-05/0.009758, allocations: 80.27 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.009771, allocations: 4 kB / 275.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.0098, allocations: 17.7 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.802e-05/0.009888, allocations: 314.8 kB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.491e-06/0.009894, allocations: 4 kB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.187e-06/0.009898, allocations: 4 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.253e-05/0.00992, allocations: 4.859 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.009922, allocations: 0 / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.495e-05/0.009967, allocations: 41.62 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.009979, allocations: 4.094 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.009983, allocations: 4 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.009995, allocations: 0 / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.163e-05/0.01002, allocations: 7.875 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.756e-06/0.01002, allocations: 0 / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.581e-05/0.01003, allocations: 4 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-06/0.01004, allocations: 0 / 276.1 MB, free: 14.23 MB / 266.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: 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 6.039e-05/0.0101, allocations: 109.8 kB / 276.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.034e-06/0.01011, allocations: 4 kB / 276.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.623e-05/0.01013, allocations: 7.141 kB / 276.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.01014, allocations: 192 / 276.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.01014, allocations: 7.938 kB / 276.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.01014, allocations: 3.984 kB / 276.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.208e-05/0.01021, allocations: 61.91 kB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.01021, allocations: 0 / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-06/0.01022, allocations: 0 / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.01022, allocations: 0 / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-06/0.01022, allocations: 0 / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.01022, allocations: 0 / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01022, allocations: 4 kB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.413e-05/0.01028, allocations: 61.05 kB / 276.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.266e-06/0.01029, allocations: 12.03 kB / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.456e-06/0.01029, allocations: 0 / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.987e-06/0.0103, allocations: 0 / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.979e-06/0.01031, allocations: 3.984 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.01032, allocations: 0 / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.697e-05/0.01033, allocations: 20.78 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01033, allocations: 0 / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003584/0.01069, allocations: 131.5 kB / 276.5 MB, free: 13.76 MB / 266.7 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.001288/0.01198, allocations: 0.5667 MB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.981e-05/0.01203, allocations: 8.859 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.01203, allocations: 7.938 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.024e-06/0.01204, allocations: 12.92 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.678e-05/0.01211, allocations: 0 / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003625/0.01247, allocations: 116.6 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.393e-05/0.0125, allocations: 55.34 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.438e-05/0.01253, allocations: 7.984 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.605e-05/0.01256, allocations: 55.31 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01256, allocations: 4.062 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of Templates: time 0.006366/0.01893, allocations: 3.43 MB / 280.7 MB, free: 9.566 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.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.7233353657647967]