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.0007512/0.0007512, allocations: 80.62 kB / 22.21 MB, free: 2.297 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.0008004/0.0008004, allocations: 151 kB / 25.6 MB, free: 8.938 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.9177/0.9177, allocations: 173.4 MB / 202.2 MB, free: 8.301 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.613e-06/1.613e-06, allocations: 3.938 kB / 269.2 MB, free: 9.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.465e-05/2.626e-05, allocations: 6.547 kB / 269.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002154/0.00218, allocations: 1.222 MB / 270.4 MB, free: 8.598 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.004408, allocations: 2.044 MB / 272.4 MB, free: 6.547 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.484e-05/0.004433, allocations: 0 / 272.4 MB, free: 6.547 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.979e-05/0.004452, allocations: 3.984 kB / 272.4 MB, free: 6.543 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.001025/0.005478, allocations: 438.4 kB / 272.9 MB, free: 6.113 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.958e-05/0.005497, allocations: 5.391 kB / 272.9 MB, free: 6.109 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 3.794e-05/0.005535, allocations: 7.938 kB / 272.9 MB, free: 6.102 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.295e-05/0.005568, allocations: 4 kB / 272.9 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.977e-05/0.005598, allocations: 12.55 kB / 272.9 MB, free: 6.086 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.66e-05/0.005645, allocations: 4 kB / 272.9 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.669e-06/0.005654, allocations: 0.5938 kB / 272.9 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005307/0.006185, allocations: 452 kB / 273.3 MB, free: 5.641 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.305e-05/0.006198, allocations: 3.984 kB / 273.3 MB, free: 5.637 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.634e-05/0.006215, allocations: 9.656 kB / 273.3 MB, free: 5.629 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004342/0.006649, allocations: 415 kB / 273.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.006653, allocations: 0 / 273.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.006654, allocations: 0 / 273.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.006658, allocations: 0 / 273.8 MB, free: 5.223 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.0003073/0.006966, allocations: 432.8 kB / 274.2 MB, free: 4.766 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.006996, allocations: 12.03 kB / 274.2 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.66e-05/0.007043, allocations: 124.1 kB / 274.3 MB, free: 4.633 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.438e-05/0.007137, allocations: 236.9 kB / 274.5 MB, free: 4.375 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.917e-05/0.007187, allocations: 238.8 kB / 274.8 MB, free: 4.141 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/0.007236, allocations: 243.7 kB / 275 MB, free: 3.902 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.363e-05/0.00729, allocations: 149.5 kB / 275.2 MB, free: 3.75 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.007317, allocations: 123.1 kB / 275.3 MB, free: 3.629 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.532e-05/0.007372, allocations: 243.1 kB / 275.5 MB, free: 3.391 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.73e-05/0.00742, allocations: 242.3 kB / 275.8 MB, free: 3.152 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.673e-05/0.007466, allocations: 242.9 kB / 276 MB, free: 2.914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001939/0.00766, allocations: 0.5531 MB / 276.5 MB, free: 2.336 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.863e-05/0.007739, allocations: 273.4 kB / 276.8 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.098e-05/0.00777, allocations: 130.9 kB / 276.9 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.007795, allocations: 119.2 kB / 277.1 MB, free: 1.805 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.816e-05/0.007873, allocations: 49.06 kB / 277.1 MB, free: 1.742 MB / 250.7 MB Notification: Performance of pre-optimization done (n=1): time 1.763e-06/0.007874, allocations: 0 / 277.1 MB, free: 1.742 MB / 250.7 MB Notification: Performance of matching and sorting (n=1): time 8.766e-05/0.007962, allocations: 41.58 kB / 277.1 MB, free: 1.695 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.007992, allocations: 51.41 kB / 277.2 MB, free: 1.633 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.219e-05/0.008054, allocations: 161.9 kB / 277.3 MB, free: 1.457 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.783e-06/0.008061, allocations: 29.83 kB / 277.4 MB, free: 1.422 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.256e-05/0.008093, allocations: 130.9 kB / 277.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.137e-05/0.008105, allocations: 7.984 kB / 277.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.008129, allocations: 15.38 kB / 277.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.008239, allocations: 492.1 kB / 278 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.73e-06/0.008245, allocations: 4 kB / 278 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.26e-06/0.00825, allocations: 3.984 kB / 278 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.583e-05/0.008266, allocations: 7.688 kB / 278 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.008267, allocations: 4 kB / 278 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.928e-05/0.008307, allocations: 37.69 kB / 278.1 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.008316, allocations: 8 kB / 278.1 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.297e-06/0.00832, allocations: 0 / 278.1 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.943e-06/0.008327, allocations: 3.938 kB / 278.1 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.625e-05/0.008343, allocations: 4 kB / 278.1 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-06/0.008345, allocations: 0 / 278.1 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.341e-05/0.008359, allocations: 0 / 278.1 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.008364, allocations: 0 / 278.1 MB, free: 0.6836 MB / 250.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.611e-05/0.00843, allocations: 156.6 kB / 278.2 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.931e-06/0.008436, allocations: 4 kB / 278.2 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.008462, allocations: 11.11 kB / 278.2 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.008465, allocations: 7.938 kB / 278.3 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.008466, allocations: 0 / 278.3 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.008469, allocations: 0 / 278.3 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.57e-05/0.008545, allocations: 93.27 kB / 278.3 MB, free: 388 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.008546, allocations: 0 / 278.3 MB, free: 388 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.166e-06/0.008549, allocations: 7.922 kB / 278.4 MB, free: 380 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.008551, allocations: 4 kB / 278.4 MB, free: 376 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.087e-06/0.008555, allocations: 7.938 kB / 278.4 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.008556, allocations: 0 / 278.4 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.008557, allocations: 0 / 278.4 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.845e-05/0.008605, allocations: 76.38 kB / 278.4 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-06/0.00861, allocations: 0 / 278.4 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-06/0.008618, allocations: 3.984 kB / 278.4 MB, free: 264 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.139e-06/0.008623, allocations: 0 / 278.4 MB, free: 264 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.395e-06/0.008632, allocations: 0 / 278.4 MB, free: 264 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.008635, allocations: 11.94 kB / 278.5 MB, free: 252 kB / 250.7 MB Notification: Performance of sorting global known variables: time 3.496e-05/0.00867, allocations: 119.2 kB / 278.6 MB, free: 132 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00867, allocations: 4 kB / 278.6 MB, free: 128 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002781/0.008948, allocations: 123.6 kB / 278.7 MB, free: 4 kB / 250.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.0007655/0.009714, allocations: 0.5374 MB / 279.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.001e-05/0.009764, allocations: 23.61 kB / 279.3 MB, free: 15.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.009766, allocations: 4.062 kB / 279.3 MB, free: 15.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.863e-06/0.009773, allocations: 11.69 kB / 279.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.268e-05/0.009866, allocations: 0 / 279.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002894/0.01015, allocations: 122.3 kB / 279.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.728e-05/0.01018, allocations: 59.28 kB / 279.5 MB, free: 15.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.86e-05/0.0102, allocations: 7.938 kB / 279.5 MB, free: 15.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.088e-05/0.01023, allocations: 78.25 kB / 279.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01023, allocations: 0 / 279.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of Templates: time 0.004532/0.01476, allocations: 3.442 MB / 283 MB, free: 11.75 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 -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.800120495725423]