Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009642/0.0009642, allocations: 175.3 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007309/0.000731, allocations: 94.62 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002914/0.0002914, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2432, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001173/0.2444, allocations: 0.9124 MB / 376 MB, free: 44.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.2468, allocations: 1.875 MB / 377.9 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.252e-05/0.2469, allocations: 1.219 kB / 377.9 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.803e-05/0.2469, allocations: 0 / 377.9 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009412/0.2479, allocations: 326.3 kB / 378.2 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.395e-05/0.2479, allocations: 10.19 kB / 378.2 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.869e-05/0.2479, allocations: 7.125 kB / 378.2 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.575e-05/0.248, allocations: 5.391 kB / 378.2 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.206e-05/0.248, allocations: 7.25 kB / 378.2 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002532/0.2483, allocations: 3.75 kB / 378.2 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.716e-06/0.2483, allocations: 1 kB / 378.2 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005689/0.2489, allocations: 404.8 kB / 378.6 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.115e-05/0.2489, allocations: 1.469 kB / 378.6 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.2489, allocations: 27.14 kB / 378.6 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003242/0.2493, allocations: 228 kB / 378.9 MB, free: 42.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2493, allocations: 0 / 378.9 MB, free: 42.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2493, allocations: 0 / 378.9 MB, free: 42.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.2493, allocations: 0 / 378.9 MB, free: 42.66 MB / 298.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.0003327/0.2496, allocations: 397.8 kB / 379.2 MB, free: 42.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2497, allocations: 8.125 kB / 379.3 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.03e-05/0.2497, allocations: 81.62 kB / 379.3 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.2499, allocations: 250.2 kB / 379.6 MB, free: 41.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.2499, allocations: 156 kB / 379.7 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.2499, allocations: 154.7 kB / 379.9 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.866e-05/0.25, allocations: 101.9 kB / 380 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.25, allocations: 75.28 kB / 380.1 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.803e-05/0.25, allocations: 155.8 kB / 380.2 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.499e-05/0.2501, allocations: 154.6 kB / 380.4 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.582e-05/0.2501, allocations: 155.6 kB / 380.5 MB, free: 40.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.2503, allocations: 444.1 kB / 380.9 MB, free: 40.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.623e-05/0.2503, allocations: 174.2 kB / 381.1 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.633e-05/0.2504, allocations: 84.08 kB / 381.2 MB, free: 40.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.2504, allocations: 76.44 kB / 381.3 MB, free: 40.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001272/0.2505, allocations: 46.66 kB / 381.3 MB, free: 40.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.224e-06/0.2505, allocations: 0.9688 kB / 381.3 MB, free: 40.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001365/0.2507, allocations: 37.95 kB / 381.4 MB, free: 40.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.214e-05/0.2507, allocations: 56.36 kB / 381.4 MB, free: 39.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.746e-05/0.2508, allocations: 96.48 kB / 381.5 MB, free: 39.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-06/0.2508, allocations: 25.7 kB / 381.5 MB, free: 39.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.405e-05/0.2508, allocations: 93.28 kB / 381.6 MB, free: 39.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.179e-05/0.2508, allocations: 0 / 381.6 MB, free: 39.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-06/0.2508, allocations: 0.9688 kB / 381.6 MB, free: 39.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.826e-05/0.2509, allocations: 315.8 kB / 381.9 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.182e-06/0.2509, allocations: 128 / 381.9 MB, free: 39.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.719e-06/0.2509, allocations: 9.188 kB / 381.9 MB, free: 39.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.891e-05/0.2509, allocations: 12.02 kB / 381.9 MB, free: 39.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2509, allocations: 3.938 kB / 382 MB, free: 39.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.13e-05/0.251, allocations: 38.64 kB / 382 MB, free: 39.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.251, allocations: 8.656 kB / 382 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.251, allocations: 3.984 kB / 382 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.251, allocations: 0.9688 kB / 382 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.024e-05/0.2511, allocations: 0 / 382 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.2511, allocations: 5.281 kB / 382 MB, free: 39.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.506e-05/0.2511, allocations: 3.984 kB / 382 MB, free: 39.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-06/0.2511, allocations: 0 / 382 MB, free: 39.36 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.958e-05/0.2512, allocations: 112.8 kB / 382.1 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-06/0.2512, allocations: 1.219 kB / 382.1 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.203e-05/0.2512, allocations: 12.27 kB / 382.1 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.2512, allocations: 1.031 kB / 382.1 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.2512, allocations: 3.984 kB / 382.1 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.2512, allocations: 0.9062 kB / 382.1 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.044e-05/0.2513, allocations: 159.8 kB / 382.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2513, allocations: 0 / 382.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.2513, allocations: 1.094 kB / 382.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.2514, allocations: 0 / 382.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-06/0.2514, allocations: 1.125 kB / 382.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.2514, allocations: 0 / 382.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2514, allocations: 0 / 382.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.573e-05/0.2514, allocations: 64.22 kB / 382.4 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.858e-05/0.2515, allocations: 82.67 kB / 382.4 MB, free: 38.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.032e-05/0.2515, allocations: 0 / 382.4 MB, free: 38.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.322e-05/0.2515, allocations: 4.766 kB / 382.4 MB, free: 38.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.137e-06/0.2515, allocations: 0 / 382.4 MB, free: 38.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.2515, allocations: 5.188 kB / 382.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.384e-05/0.2515, allocations: 87.41 kB / 382.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2515, allocations: 3.938 kB / 382.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003964/0.252, allocations: 123.6 kB / 382.7 MB, free: 38.72 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008203/0.2528, allocations: 475.8 kB / 383.1 MB, free: 38.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.059e-05/0.2528, allocations: 3.75 kB / 383.1 MB, free: 38.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2528, allocations: 4 kB / 383.1 MB, free: 38.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.521e-06/0.2529, allocations: 2.625 kB / 383.1 MB, free: 38.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.253, allocations: 9.328 kB / 383.1 MB, free: 38.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002275/0.2532, allocations: 139.8 kB / 383.3 MB, free: 38.28 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.2534, allocations: 0.677 MB / 384 MB, free: 37.58 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.78e-05/0.2534, allocations: 11.41 kB / 384 MB, free: 37.57 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2534, allocations: 0 / 384 MB, free: 37.57 MB / 298.7 MB Notification: Performance of Templates: time 0.005364/0.2588, allocations: 3.071 MB / 387 MB, free: 36.02 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches