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.001143/0.001143, allocations: 96.09 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001596/0.001596, allocations: 204.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.7 MB / 247.5 MB, free: 11.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002303/0.0002303, allocations: 8 kB / 308.4 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08874/0.08899, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001246/0.09027, allocations: 0.9268 MB / 360.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003072/0.09337, allocations: 2.078 MB / 362.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.519e-05/0.09341, allocations: 0 / 362.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.581e-05/0.09344, allocations: 4 kB / 362.9 MB, free: 10.26 MB / 302.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.001107/0.09455, allocations: 351.1 kB / 363.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.518e-05/0.09458, allocations: 11.92 kB / 363.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.325e-05/0.09463, allocations: 4 kB / 363.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.57e-05/0.09468, allocations: 4 kB / 363.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.317e-05/0.09471, allocations: 3.984 kB / 363.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.09482, allocations: 19.88 kB / 363.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.797e-06/0.09484, allocations: 0 / 363.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007456/0.09559, allocations: 463.5 kB / 363.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.202e-05/0.09562, allocations: 4 kB / 363.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.96e-05/0.09565, allocations: 29.7 kB / 363.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.09609, allocations: 255.6 kB / 364 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.09611, allocations: 3.938 kB / 364 MB, free: 9.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09611, allocations: 0 / 364 MB, free: 9.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.09612, allocations: 4 kB / 364 MB, free: 9.125 MB / 302.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.0004381/0.09657, allocations: 427.6 kB / 364.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.09661, allocations: 8.031 kB / 364.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.537e-05/0.09667, allocations: 76.22 kB / 364.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/0.09683, allocations: 247.6 kB / 364.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.523e-05/0.09689, allocations: 154.9 kB / 364.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.743e-05/0.09694, allocations: 158.7 kB / 365.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.51e-05/0.097, allocations: 105 kB / 365.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.777e-05/0.09703, allocations: 75.28 kB / 365.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.066e-05/0.09709, allocations: 150.6 kB / 365.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.932e-05/0.09714, allocations: 154.6 kB / 365.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.095e-05/0.0972, allocations: 150.6 kB / 365.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002722/0.09748, allocations: 453.9 kB / 366.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.93e-05/0.09755, allocations: 165.1 kB / 366.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.601e-05/0.0976, allocations: 88.08 kB / 366.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.09763, allocations: 79.27 kB / 366.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001211/0.09775, allocations: 51.34 kB / 366.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.484e-06/0.09776, allocations: 0 / 366.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001391/0.09791, allocations: 33.7 kB / 366.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.09795, allocations: 51.41 kB / 366.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.862e-05/0.09804, allocations: 106 kB / 366.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.09806, allocations: 25.7 kB / 366.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.645e-05/0.0981, allocations: 84.14 kB / 366.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.09812, allocations: 3.906 kB / 366.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-05/0.09815, allocations: 9.719 kB / 366.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.431e-05/0.09825, allocations: 314.8 kB / 367.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.095e-06/0.09826, allocations: 0 / 367.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.09827, allocations: 4 kB / 367.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.422e-05/0.0983, allocations: 16.84 kB / 367.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.09831, allocations: 0 / 367.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.358e-05/0.09837, allocations: 37.64 kB / 367.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.09839, allocations: 4 kB / 367.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.0984, allocations: 0 / 367.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.09841, allocations: 3.938 kB / 367.2 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.376e-05/0.09844, allocations: 4 kB / 367.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.09845, allocations: 0 / 367.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.857e-05/0.09847, allocations: 4 kB / 367.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-06/0.09849, allocations: 4.031 kB / 367.2 MB, free: 5.707 MB / 302.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.541e-05/0.09857, allocations: 117.8 kB / 367.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.536e-06/0.09858, allocations: 0 / 367.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.09862, allocations: 15.02 kB / 367.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.09862, allocations: 0 / 367.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.09864, allocations: 0 / 367.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.09864, allocations: 3.938 kB / 367.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.09877, allocations: 153.6 kB / 367.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.09878, allocations: 0 / 367.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.627e-06/0.09879, allocations: 0 / 367.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.09879, allocations: 4 kB / 367.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.09881, allocations: 4 kB / 367.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.09881, allocations: 0 / 367.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.09882, allocations: 0 / 367.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.355e-05/0.09888, allocations: 61.06 kB / 367.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.09893, allocations: 81.02 kB / 367.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.09895, allocations: 4 kB / 367.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.222e-05/0.09897, allocations: 8.031 kB / 367.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.366e-06/0.09898, allocations: 0 / 367.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.09899, allocations: 3.984 kB / 367.7 MB, free: 5.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.556e-05/0.09903, allocations: 79.28 kB / 367.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.09904, allocations: 0 / 367.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004407/0.09948, allocations: 147.9 kB / 367.9 MB, free: 4.938 MB / 302.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.0009718/0.1005, allocations: 0.5024 MB / 368.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.643e-05/0.1005, allocations: 4 kB / 368.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.1006, allocations: 0 / 368.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.875e-06/0.1006, allocations: 4 kB / 368.4 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.1007, allocations: 12.05 kB / 368.4 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002348/0.101, allocations: 130.3 kB / 368.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.1012, allocations: 0.677 MB / 369.2 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.278e-05/0.1012, allocations: 15.38 kB / 369.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1012, allocations: 0 / 369.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of Templates: time 0.005907/0.1071, allocations: 3.387 MB / 372.6 MB, free: 204 kB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches