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.001252/0.001252, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001384/0.001384, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.388/1.388, allocations: 230.6 MB / 258.3 MB, free: 7.988 MB / 206.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 0.001582/0.001582, allocations: 51.92 kB / 379 MB, free: 2.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.239, allocations: 53.36 MB / 432.4 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00228/0.2413, allocations: 1.215 MB / 433.6 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003373/0.2447, allocations: 2.189 MB / 435.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.133e-05/0.2447, allocations: 0 / 435.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.936e-05/0.2447, allocations: 3.938 kB / 435.8 MB, free: 3.52 MB / 334.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.001275/0.246, allocations: 474.5 kB / 436.2 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.778e-05/0.246, allocations: 11.91 kB / 436.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.474e-05/0.2461, allocations: 4 kB / 436.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.732e-05/0.2461, allocations: 4 kB / 436.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.985e-05/0.2461, allocations: 3.938 kB / 436.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003789/0.2465, allocations: 15.94 kB / 436.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.128e-06/0.2465, allocations: 0 / 436.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008511/0.2473, allocations: 0.519 MB / 436.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.424e-05/0.2474, allocations: 7.984 kB / 436.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.787e-05/0.2474, allocations: 0 / 436.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006054/0.248, allocations: 388.3 kB / 437.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.248, allocations: 0 / 437.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.248, allocations: 0 / 437.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.248, allocations: 0 / 437.2 MB, free: 2.113 MB / 334.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.0004641/0.2485, allocations: 345.4 kB / 437.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.2485, allocations: 8.031 kB / 437.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.277e-05/0.2486, allocations: 88.17 kB / 437.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.2487, allocations: 189.8 kB / 437.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.734e-05/0.2488, allocations: 150.9 kB / 437.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.346e-05/0.2488, allocations: 154.7 kB / 438.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.145e-05/0.2489, allocations: 101 kB / 438.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.386e-05/0.2489, allocations: 75.28 kB / 438.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.9e-05/0.249, allocations: 154.6 kB / 438.4 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.993e-05/0.2491, allocations: 154.5 kB / 438.6 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.565e-05/0.2491, allocations: 154.6 kB / 438.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000291/0.2494, allocations: 417 kB / 439.1 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.2496, allocations: 177.1 kB / 439.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.691e-05/0.2496, allocations: 84.08 kB / 439.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.2496, allocations: 75.28 kB / 439.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001359/0.2498, allocations: 51.33 kB / 439.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.724e-06/0.2498, allocations: 0 / 439.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000123/0.2499, allocations: 33.7 kB / 439.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.2499, allocations: 55.34 kB / 439.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.913e-05/0.25, allocations: 109.8 kB / 439.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.25, allocations: 25.7 kB / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.2501, allocations: 84.14 kB / 439.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.196e-05/0.2501, allocations: 3.953 kB / 439.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.2501, allocations: 13.72 kB / 439.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.2502, allocations: 310.8 kB / 440.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.784e-06/0.2502, allocations: 4.125 kB / 440.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.642e-06/0.2503, allocations: 4 kB / 440.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.39e-05/0.2503, allocations: 8.859 kB / 440.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2503, allocations: 7.922 kB / 440.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.004e-05/0.2503, allocations: 37.64 kB / 440.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.2504, allocations: 4 kB / 440.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2504, allocations: 0 / 440.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.2504, allocations: 0 / 440.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.742e-05/0.2504, allocations: 4.031 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.2504, allocations: 4 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.734e-05/0.2504, allocations: 4 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-06/0.2504, allocations: 0 / 440.2 MB, free: 14.89 MB / 350.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 7.444e-05/0.2505, allocations: 109.8 kB / 440.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.104e-05/0.2505, allocations: 3.984 kB / 440.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.46e-05/0.2505, allocations: 11.11 kB / 440.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2505, allocations: 0 / 440.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2505, allocations: 4 kB / 440.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.2505, allocations: 4 kB / 440.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.2507, allocations: 128.7 kB / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2507, allocations: 0 / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.126e-06/0.2507, allocations: 0 / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.2507, allocations: 0 / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-06/0.2507, allocations: 0 / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.2507, allocations: 0 / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2507, allocations: 0 / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.597e-05/0.2507, allocations: 73 kB / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-06/0.2507, allocations: 0 / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.2508, allocations: 4 kB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.142e-05/0.2508, allocations: 0 / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.22e-05/0.2508, allocations: 3.938 kB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-06/0.2508, allocations: 0 / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.887e-05/0.2508, allocations: 87.27 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2508, allocations: 0 / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004361/0.2513, allocations: 143.5 kB / 440.8 MB, free: 14.25 MB / 350.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.001069/0.2523, allocations: 0.5 MB / 441.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.243e-05/0.2524, allocations: 4 kB / 441.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.2524, allocations: 4 kB / 441.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.571e-06/0.2524, allocations: 0 / 441.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.2525, allocations: 12 kB / 441.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002474/0.2528, allocations: 128.6 kB / 441.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.2531, allocations: 0.6729 MB / 442.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.815e-05/0.2531, allocations: 15.42 kB / 442.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2531, allocations: 0 / 442.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of Templates: time 0.006145/0.2593, allocations: 3.389 MB / 445.5 MB, free: 9.535 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/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: 7.543756905943155]