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.001509/0.001509, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.001509/0.001509, allocations: 149.3 kB / 24.25 MB, free: 184 kB / 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 1.435/1.435, allocations: 173.4 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] 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.944e-06/1.944e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.448e-05/3.642e-05, allocations: 6.312 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002459/0.002495, allocations: 1.196 MB / 268.5 MB, free: 5.535 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003737/0.006232, allocations: 2.007 MB / 270.5 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.438e-05/0.006256, allocations: 0 / 270.5 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.614e-05/0.006282, allocations: 3.938 kB / 270.5 MB, free: 3.516 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.001321/0.007603, allocations: 438.4 kB / 270.9 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.244e-05/0.007625, allocations: 0 / 270.9 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.606e-05/0.007671, allocations: 11.94 kB / 270.9 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.152e-05/0.007713, allocations: 11.94 kB / 270.9 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.786e-05/0.007761, allocations: 11.97 kB / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.371e-05/0.007824, allocations: 0 / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/0.007836, allocations: 0 / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000787/0.008623, allocations: 451.3 kB / 271.4 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.01e-05/0.008633, allocations: 0 / 271.4 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.008657, allocations: 4 kB / 271.4 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006768/0.009334, allocations: 418.9 kB / 271.8 MB, free: 2.195 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.00934, allocations: 4 kB / 271.8 MB, free: 2.191 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.009342, allocations: 0 / 271.8 MB, free: 2.191 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.009346, allocations: 0 / 271.8 MB, free: 2.191 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.0005754/0.009921, allocations: 337.5 kB / 272.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.009966, allocations: 8.922 kB / 272.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.856e-05/0.01006, allocations: 80.22 kB / 272.2 MB, free: 1.746 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.01026, allocations: 197 kB / 272.4 MB, free: 1.527 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.323e-05/0.01036, allocations: 158.9 kB / 272.6 MB, free: 1.371 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.571e-05/0.01044, allocations: 150.9 kB / 272.7 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.916e-05/0.01053, allocations: 101.5 kB / 272.8 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.215e-05/0.01058, allocations: 87.16 kB / 272.9 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.01069, allocations: 150.6 kB / 273.1 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.873e-05/0.01078, allocations: 150.6 kB / 273.2 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.918e-05/0.01087, allocations: 150.6 kB / 273.3 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006303/0.0115, allocations: 405.6 kB / 273.7 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.01167, allocations: 169.1 kB / 273.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.217e-05/0.01173, allocations: 84.08 kB / 274 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.886e-05/0.01178, allocations: 75.28 kB / 274.1 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.01196, allocations: 47.41 kB / 274.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.394e-06/0.01196, allocations: 0 / 274.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001691/0.01213, allocations: 41.58 kB / 274.2 MB, free: 15.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.01219, allocations: 51.41 kB / 274.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.01231, allocations: 101.8 kB / 274.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.01234, allocations: 33.83 kB / 274.3 MB, free: 15.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.0124, allocations: 80.14 kB / 274.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.01242, allocations: 0 / 274.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.01245, allocations: 9.719 kB / 274.4 MB, free: 15.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.01265, allocations: 318.8 kB / 274.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.01266, allocations: 0 / 274.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.125e-06/0.01267, allocations: 3.984 kB / 274.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.69e-05/0.0127, allocations: 8.859 kB / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.0127, allocations: 0 / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.887e-05/0.01277, allocations: 37.7 kB / 274.8 MB, free: 15.03 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.01279, allocations: 8 kB / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.01279, allocations: 3.938 kB / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.01281, allocations: 0 / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.104e-05/0.01283, allocations: 0 / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.01284, allocations: 0 / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.98e-05/0.01286, allocations: 4 kB / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.01286, allocations: 0 / 274.8 MB, free: 15.02 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 0.0001007/0.01296, allocations: 113.8 kB / 274.9 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.335e-05/0.01297, allocations: 3.953 kB / 274.9 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.116e-05/0.01302, allocations: 18.98 kB / 274.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.01302, allocations: 4.031 kB / 274.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.01302, allocations: 0 / 274.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.01302, allocations: 0 / 274.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.01315, allocations: 105.3 kB / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.01315, allocations: 0 / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.267e-06/0.01315, allocations: 0 / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.01316, allocations: 4 kB / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.01316, allocations: 0 / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.01317, allocations: 3.938 kB / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.01317, allocations: 0 / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.962e-05/0.01327, allocations: 65.06 kB / 275.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-06/0.01327, allocations: 4 kB / 275.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.01329, allocations: 0 / 275.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.65e-05/0.0133, allocations: 3.938 kB / 275.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.137e-05/0.01332, allocations: 0 / 275.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-06/0.01332, allocations: 192 / 275.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.932e-05/0.01338, allocations: 87.27 kB / 275.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01338, allocations: 0 / 275.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004487/0.01382, allocations: 131.6 kB / 275.3 MB, free: 14.42 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.001359/0.01518, allocations: 0.5261 MB / 275.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.227e-05/0.01525, allocations: 0 / 275.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.01525, allocations: 4 kB / 275.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-06/0.01526, allocations: 8 kB / 275.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/0.01541, allocations: 4 kB / 275.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002995/0.01571, allocations: 112.6 kB / 276 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.366e-05/0.01579, allocations: 59.34 kB / 276 MB, free: 13.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.183e-05/0.01582, allocations: 7.984 kB / 276 MB, free: 13.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.201e-05/0.01585, allocations: 12.5 kB / 276.1 MB, free: 13.73 MB / 266.7 MB Notification: Performance of SimCode: time 4e-07/0.01585, allocations: 4 kB / 276.1 MB, free: 13.72 MB / 266.7 MB Notification: Performance of Templates: time 0.007386/0.02324, allocations: 2.843 MB / 278.9 MB, free: 10.88 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.509909795015119]