Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 113.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001524/0.001524, allocations: 211.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2365, allocations: 50.54 MB / 409.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002234/0.2388, allocations: 1.203 MB / 410.4 MB, free: 372 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.2422, allocations: 2.073 MB / 412.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.063e-05/0.2423, allocations: 4 kB / 412.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.327e-05/0.2423, allocations: 4 kB / 412.5 MB, free: 14.28 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001413/0.2438, allocations: 473.9 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.877e-05/0.2438, allocations: 3.984 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.894e-05/0.2439, allocations: 7.938 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.213e-05/0.2439, allocations: 4 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.472e-05/0.2439, allocations: 4 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.244, allocations: 11.98 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.269e-05/0.2441, allocations: 3.984 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008733/0.2449, allocations: 0.5072 MB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.058e-05/0.245, allocations: 11.92 kB / 413.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.883e-05/0.245, allocations: 3.984 kB / 413.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007452/0.2458, allocations: 379 kB / 413.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2458, allocations: 0 / 413.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2458, allocations: 0 / 413.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.2458, allocations: 0 / 413.9 MB, free: 12.89 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.0005691/0.2464, allocations: 422.5 kB / 414.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2464, allocations: 8.031 kB / 414.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.451e-05/0.2465, allocations: 84.17 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.2467, allocations: 243.7 kB / 414.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.525e-05/0.2468, allocations: 154.9 kB / 414.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.2469, allocations: 158.6 kB / 414.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.773e-05/0.2469, allocations: 101 kB / 415 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.247, allocations: 79.28 kB / 415.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.921e-05/0.247, allocations: 154.6 kB / 415.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.44e-05/0.2471, allocations: 150.6 kB / 415.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.353e-05/0.2471, allocations: 154.5 kB / 415.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002635/0.2474, allocations: 446 kB / 416 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.07e-05/0.2475, allocations: 173.1 kB / 416.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.124e-05/0.2475, allocations: 84.12 kB / 416.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.2476, allocations: 79.28 kB / 416.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001342/0.2477, allocations: 47.41 kB / 416.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.374e-06/0.2477, allocations: 0 / 416.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001257/0.2478, allocations: 37.64 kB / 416.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.2479, allocations: 59.39 kB / 416.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.281e-05/0.248, allocations: 97.86 kB / 416.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/0.248, allocations: 25.7 kB / 416.6 MB, free: 9.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.239e-05/0.248, allocations: 84.14 kB / 416.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.2481, allocations: 7.938 kB / 416.7 MB, free: 9.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-05/0.2481, allocations: 21.59 kB / 416.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2482, allocations: 314.8 kB / 417 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-06/0.2483, allocations: 8.125 kB / 417 MB, free: 9.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-06/0.2483, allocations: 0 / 417 MB, free: 9.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.259e-05/0.2483, allocations: 8.859 kB / 417 MB, free: 9.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2483, allocations: 3.938 kB / 417 MB, free: 9.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.344e-05/0.2484, allocations: 37.64 kB / 417.1 MB, free: 9.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.2484, allocations: 4 kB / 417.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2484, allocations: 0 / 417.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.2484, allocations: 3.984 kB / 417.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.858e-05/0.2484, allocations: 4.281 kB / 417.1 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.2484, allocations: 4 kB / 417.1 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.607e-05/0.2485, allocations: 0 / 417.1 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.2485, allocations: 0 / 417.1 MB, free: 9.461 MB / 334.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 6.816e-05/0.2485, allocations: 113.8 kB / 417.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.143e-05/0.2486, allocations: 4 kB / 417.2 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.69e-05/0.2486, allocations: 7.078 kB / 417.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.2486, allocations: 0 / 417.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.2486, allocations: 0 / 417.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.2486, allocations: 0 / 417.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.2487, allocations: 161.6 kB / 417.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2487, allocations: 0 / 417.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.467e-06/0.2487, allocations: 0 / 417.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2487, allocations: 0 / 417.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.2488, allocations: 4 kB / 417.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.2488, allocations: 11.92 kB / 417.4 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2488, allocations: 0 / 417.4 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.356e-05/0.2488, allocations: 57.08 kB / 417.4 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.894e-05/0.2489, allocations: 81.14 kB / 417.5 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.2489, allocations: 4 kB / 417.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.291e-05/0.2489, allocations: 3.984 kB / 417.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-06/0.2489, allocations: 0 / 417.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-06/0.2489, allocations: 0 / 417.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.189e-05/0.249, allocations: 79.28 kB / 417.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.249, allocations: 0 / 417.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.2494, allocations: 151.5 kB / 417.7 MB, free: 8.695 MB / 334.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.0009569/0.2504, allocations: 0.4932 MB / 418.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.488e-05/0.2505, allocations: 7.938 kB / 418.2 MB, free: 8.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2505, allocations: 4.062 kB / 418.2 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.752e-06/0.2505, allocations: 4 kB / 418.2 MB, free: 8.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.2506, allocations: 15.05 kB / 418.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002167/0.2509, allocations: 90.73 kB / 418.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.2511, allocations: 0.6768 MB / 419 MB, free: 7.406 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.276e-05/0.2511, allocations: 11.92 kB / 419 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.334e-05/0.2511, allocations: 15.5 kB / 419.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2511, allocations: 0 / 419.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of Templates: time 0.005825/0.257, allocations: 3.137 MB / 422.2 MB, free: 4.238 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches