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.001875/0.001875, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002586/0.002586, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.569/1.569, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.001653/0.001653, allocations: 51.92 kB / 378.9 MB, free: 2.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2417, allocations: 53.37 MB / 432.3 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002669/0.2444, allocations: 1.207 MB / 433.5 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003855/0.2482, allocations: 2.084 MB / 435.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.469e-05/0.2482, allocations: 0 / 435.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.418e-05/0.2483, allocations: 3.938 kB / 435.6 MB, free: 3.453 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.001574/0.2498, allocations: 470.6 kB / 436.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.553e-05/0.2499, allocations: 4 kB / 436.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.092e-05/0.2499, allocations: 7.938 kB / 436.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.105e-05/0.25, allocations: 7.922 kB / 436.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.189e-05/0.25, allocations: 11.98 kB / 436.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.422e-05/0.2501, allocations: 11.88 kB / 436.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.728e-06/0.2501, allocations: 0 / 436.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000968/0.251, allocations: 491.5 kB / 436.6 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.381e-05/0.251, allocations: 0 / 436.6 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.405e-05/0.2511, allocations: 4 kB / 436.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007305/0.2518, allocations: 380.8 kB / 437 MB, free: 2.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2518, allocations: 0 / 437 MB, free: 2.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2518, allocations: 0 / 437 MB, free: 2.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.2518, allocations: 0 / 437 MB, free: 2.098 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.0005831/0.2524, allocations: 345.4 kB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.2524, allocations: 16.03 kB / 437.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.725e-05/0.2525, allocations: 80.17 kB / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.2527, allocations: 189.8 kB / 437.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.355e-05/0.2528, allocations: 154.9 kB / 437.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.494e-05/0.2529, allocations: 158.7 kB / 437.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.648e-05/0.253, allocations: 101 kB / 438 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.81e-05/0.253, allocations: 75.28 kB / 438.1 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.823e-05/0.2531, allocations: 154.6 kB / 438.2 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.659e-05/0.2532, allocations: 150.6 kB / 438.4 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.701e-05/0.2533, allocations: 162.5 kB / 438.5 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003237/0.2536, allocations: 401.5 kB / 438.9 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.2537, allocations: 169.1 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.293e-05/0.2538, allocations: 84.12 kB / 439.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/0.2538, allocations: 79.22 kB / 439.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.254, allocations: 47.36 kB / 439.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.244e-06/0.254, allocations: 0 / 439.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001512/0.2541, allocations: 41.62 kB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.2542, allocations: 51.41 kB / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.2543, allocations: 101.9 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.2543, allocations: 25.83 kB / 439.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.454e-05/0.2544, allocations: 88.12 kB / 439.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.2544, allocations: 3.953 kB / 439.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.2544, allocations: 13.72 kB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2546, allocations: 314.8 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-06/0.2546, allocations: 0 / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.774e-06/0.2546, allocations: 4 kB / 439.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.766e-05/0.2546, allocations: 8.797 kB / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2546, allocations: 0 / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.373e-05/0.2547, allocations: 41.62 kB / 440 MB, free: 14.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2547, allocations: 8.094 kB / 440 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2547, allocations: 3.938 kB / 440 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.2547, allocations: 0 / 440 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.146e-05/0.2547, allocations: 0 / 440 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.2547, allocations: 4 kB / 440 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.2548, allocations: 0 / 440 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.2548, allocations: 0 / 440 MB, free: 14.9 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 0.000102/0.2549, allocations: 109.8 kB / 440.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.2549, allocations: 7.938 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.2549, allocations: 11.09 kB / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2549, allocations: 4 kB / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2549, allocations: 0 / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.2549, allocations: 0 / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.255, allocations: 97.33 kB / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.255, allocations: 0 / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-06/0.255, allocations: 3.938 kB / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.255, allocations: 3.938 kB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.255, allocations: 0 / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.051e-05/0.2551, allocations: 4 kB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2551, allocations: 3.984 kB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.141e-05/0.2551, allocations: 61.08 kB / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-06/0.2552, allocations: 7.938 kB / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.2552, allocations: 0 / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.202e-05/0.2552, allocations: 0 / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.666e-05/0.2552, allocations: 3.984 kB / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.2552, allocations: 4 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.048e-05/0.2552, allocations: 87.28 kB / 440.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2552, allocations: 0 / 440.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005042/0.2558, allocations: 143.5 kB / 440.5 MB, free: 14.3 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.001293/0.257, allocations: 0.5155 MB / 441 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.661e-05/0.2571, allocations: 3.938 kB / 441 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.2571, allocations: 4 kB / 441 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.58e-06/0.2571, allocations: 0 / 441 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001447/0.2573, allocations: 3.984 kB / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002931/0.2576, allocations: 128.8 kB / 441.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.425e-05/0.2576, allocations: 59.34 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.913e-05/0.2577, allocations: 11.44 kB / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2577, allocations: 0 / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of Templates: time 0.006935/0.2646, allocations: 3.398 MB / 444.6 MB, free: 10.2 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: 8.193805830087513]