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.001328/0.001329, allocations: 179.3 kB / 16.41 MB, free: 5.703 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.467/1.467, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008236/0.0008235, allocations: 94.66 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002909, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2054, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001215/0.2067, allocations: 0.913 MB / 375.4 MB, free: 44.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002491/0.2092, allocations: 1.861 MB / 377.3 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.878e-05/0.2093, allocations: 1.125 kB / 377.3 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.576e-05/0.2093, allocations: 3.984 kB / 377.3 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001121/0.2104, allocations: 321.8 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.288e-05/0.2104, allocations: 5.219 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.873e-05/0.2105, allocations: 8.125 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.286e-05/0.2105, allocations: 5.25 kB / 377.6 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.9e-05/0.2106, allocations: 6.078 kB / 377.7 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.802e-05/0.2107, allocations: 17.52 kB / 377.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.807e-06/0.2107, allocations: 0 / 377.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007171/0.2114, allocations: 388.2 kB / 378 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.295e-06/0.2114, allocations: 5.047 kB / 378.1 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.364e-05/0.2114, allocations: 26.89 kB / 378.1 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.2118, allocations: 218.7 kB / 378.3 MB, free: 42.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.2118, allocations: 1.25 kB / 378.3 MB, free: 42.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2118, allocations: 0 / 378.3 MB, free: 42.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2118, allocations: 0 / 378.3 MB, free: 42.68 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.00031/0.2122, allocations: 404.3 kB / 378.7 MB, free: 42.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.545e-05/0.2122, allocations: 9.469 kB / 378.7 MB, free: 42.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.121e-05/0.2122, allocations: 80.28 kB / 378.8 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.384e-05/0.2123, allocations: 245.4 kB / 379 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.2123, allocations: 162.5 kB / 379.2 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.2124, allocations: 151.7 kB / 379.3 MB, free: 41.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 2.654e-05/0.2124, allocations: 113 kB / 379.4 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.2124, allocations: 76.31 kB / 379.5 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.2124, allocations: 150.6 kB / 379.7 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.2125, allocations: 151.7 kB / 379.8 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.091e-05/0.2125, allocations: 154.5 kB / 380 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.2127, allocations: 448.2 kB / 380.4 MB, free: 40.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.207e-05/0.2127, allocations: 166.1 kB / 380.6 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.434e-05/0.2127, allocations: 89.11 kB / 380.6 MB, free: 40.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.2127, allocations: 75.28 kB / 380.7 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.75e-05/0.2128, allocations: 51.8 kB / 380.8 MB, free: 40.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.522e-06/0.2128, allocations: 0 / 380.8 MB, free: 40.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 7.163e-05/0.2129, allocations: 35.19 kB / 380.8 MB, free: 40.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.634e-05/0.2129, allocations: 51.41 kB / 380.9 MB, free: 39.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.565e-05/0.213, allocations: 100.1 kB / 380.9 MB, free: 39.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.001e-06/0.213, allocations: 26.77 kB / 381 MB, free: 39.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.521e-05/0.213, allocations: 88.06 kB / 381.1 MB, free: 39.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.453e-06/0.213, allocations: 1.469 kB / 381.1 MB, free: 39.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.082e-06/0.213, allocations: 4 kB / 381.1 MB, free: 39.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.967e-05/0.2131, allocations: 316.2 kB / 381.4 MB, free: 39.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.468e-06/0.2131, allocations: 0 / 381.4 MB, free: 39.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.048e-06/0.2131, allocations: 5.281 kB / 381.4 MB, free: 39.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.999e-06/0.2131, allocations: 1.219 kB / 381.4 MB, free: 39.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-06/0.2131, allocations: 1.125 kB / 381.4 MB, free: 39.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.358e-05/0.2132, allocations: 35.09 kB / 381.4 MB, free: 39.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.2132, allocations: 5 kB / 381.4 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-06/0.2132, allocations: 4.094 kB / 381.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.533e-06/0.2132, allocations: 3.984 kB / 381.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.766e-05/0.2132, allocations: 1.062 kB / 381.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.215e-06/0.2132, allocations: 0 / 381.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.2133, allocations: 1.531 kB / 381.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-06/0.2133, allocations: 0 / 381.4 MB, free: 39.39 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 3.898e-05/0.2133, allocations: 108.2 kB / 381.5 MB, free: 39.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.758e-06/0.2133, allocations: 13.11 kB / 381.6 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.526e-05/0.2134, allocations: 8.297 kB / 381.6 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.2134, allocations: 5.062 kB / 381.6 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.2134, allocations: 0 / 381.6 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.2134, allocations: 0 / 381.6 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.719e-05/0.2135, allocations: 148.5 kB / 381.7 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2135, allocations: 0 / 381.7 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-06/0.2135, allocations: 4.938 kB / 381.7 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2135, allocations: 3.938 kB / 381.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-06/0.2135, allocations: 9.219 kB / 381.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.2135, allocations: 0 / 381.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2135, allocations: 0 / 381.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.481e-05/0.2136, allocations: 59.58 kB / 381.8 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.857e-05/0.2136, allocations: 82.12 kB / 381.9 MB, free: 38.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.446e-06/0.2136, allocations: 1.031 kB / 381.9 MB, free: 38.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.393e-05/0.2136, allocations: 9.016 kB / 381.9 MB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.436e-06/0.2136, allocations: 0 / 381.9 MB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.2136, allocations: 1 kB / 381.9 MB, free: 38.87 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.441e-05/0.2137, allocations: 83.56 kB / 382 MB, free: 38.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2137, allocations: 3.969 kB / 382 MB, free: 38.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004297/0.2141, allocations: 135.4 kB / 382.1 MB, free: 38.74 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.0008471/0.215, allocations: 472.8 kB / 382.6 MB, free: 38.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 3.949e-05/0.215, allocations: 7 kB / 382.6 MB, free: 38.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.215, allocations: 0 / 382.6 MB, free: 38.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.302e-06/0.215, allocations: 6.016 kB / 382.6 MB, free: 38.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.2152, allocations: 2.031 kB / 382.6 MB, free: 38.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001533/0.2153, allocations: 140.8 kB / 382.7 MB, free: 38.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.111e-05/0.2154, allocations: 0.6719 MB / 383.4 MB, free: 37.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.994e-05/0.2154, allocations: 15.55 kB / 383.4 MB, free: 37.61 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2155, allocations: 0 / 383.4 MB, free: 37.61 MB / 298.7 MB Notification: Performance of Templates: time 0.005315/0.2208, allocations: 3.081 MB / 386.5 MB, free: 36.04 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