Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00141/0.00141, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 208 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 227.6 MB / 247.9 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 63.89 kB / 359.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2404, allocations: 50.54 MB / 410.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002056/0.2424, allocations: 1.2 MB / 411.4 MB, free: 252 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.2456, allocations: 2.08 MB / 413.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.416e-05/0.2456, allocations: 0 / 413.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.551e-05/0.2456, allocations: 7.938 kB / 413.5 MB, free: 14.15 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.001122/0.2467, allocations: 462.5 kB / 413.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.305e-05/0.2468, allocations: 11.94 kB / 413.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.797e-05/0.2468, allocations: 11.92 kB / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.952e-05/0.2468, allocations: 0 / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.682e-05/0.2469, allocations: 4 kB / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.248, allocations: 7.984 kB / 413.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.687e-06/0.248, allocations: 4 kB / 414 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007552/0.2487, allocations: 0.5189 MB / 414.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.148e-05/0.2487, allocations: 7.984 kB / 414.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.114e-05/0.2487, allocations: 4 kB / 414.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005594/0.2493, allocations: 375 kB / 414.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2493, allocations: 0 / 414.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2493, allocations: 0 / 414.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.2493, allocations: 0 / 414.8 MB, free: 12.76 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.00058/0.2499, allocations: 426.5 kB / 415.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2499, allocations: 12.03 kB / 415.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.973e-05/0.25, allocations: 84.11 kB / 415.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.2502, allocations: 243.7 kB / 415.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.783e-05/0.2503, allocations: 150.9 kB / 415.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.519e-05/0.2503, allocations: 154.7 kB / 415.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.016e-05/0.2504, allocations: 105 kB / 416 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.837e-05/0.2505, allocations: 75.28 kB / 416.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.448e-05/0.2505, allocations: 154.6 kB / 416.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.246e-05/0.2506, allocations: 154.6 kB / 416.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.482e-05/0.2507, allocations: 154.5 kB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003114/0.251, allocations: 446 kB / 417 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.628e-05/0.2511, allocations: 169.1 kB / 417.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.41e-05/0.2511, allocations: 88.12 kB / 417.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.2511, allocations: 83.28 kB / 417.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001209/0.2513, allocations: 43.36 kB / 417.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.184e-06/0.2513, allocations: 0 / 417.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001275/0.2514, allocations: 37.69 kB / 417.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.2514, allocations: 55.53 kB / 417.4 MB, free: 9.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.836e-05/0.2515, allocations: 101.9 kB / 417.5 MB, free: 9.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.2515, allocations: 25.7 kB / 417.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.598e-05/0.2516, allocations: 84.12 kB / 417.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.2516, allocations: 3.953 kB / 417.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.729e-05/0.2516, allocations: 17.66 kB / 417.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.2517, allocations: 310.8 kB / 418 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.2518, allocations: 4 kB / 418 MB, free: 9.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.252e-06/0.2518, allocations: 7.938 kB / 418 MB, free: 9.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.226e-05/0.2518, allocations: 8.859 kB / 418 MB, free: 9.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2518, allocations: 0 / 418 MB, free: 9.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.515e-05/0.2518, allocations: 41.56 kB / 418 MB, free: 9.352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.2518, allocations: 8 kB / 418 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.2519, allocations: 0 / 418 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.2519, allocations: 192 / 418 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.754e-05/0.2519, allocations: 0 / 418 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.2519, allocations: 0 / 418 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.455e-05/0.2519, allocations: 4.094 kB / 418 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-06/0.2519, allocations: 7.969 kB / 418 MB, free: 9.332 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 7.493e-05/0.252, allocations: 117.7 kB / 418.2 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.1e-05/0.252, allocations: 7.938 kB / 418.2 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/0.252, allocations: 15.06 kB / 418.2 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.252, allocations: 0 / 418.2 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.252, allocations: 0 / 418.2 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.252, allocations: 0 / 418.2 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.2522, allocations: 149.6 kB / 418.3 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2522, allocations: 12 kB / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.266e-06/0.2522, allocations: 0 / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.2522, allocations: 0 / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-06/0.2522, allocations: 0 / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.2522, allocations: 0 / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2522, allocations: 0 / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.124e-05/0.2522, allocations: 61.08 kB / 418.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.2523, allocations: 81.09 kB / 418.5 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.2523, allocations: 4.031 kB / 418.5 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.172e-05/0.2523, allocations: 0 / 418.5 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.232e-05/0.2523, allocations: 0 / 418.5 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.2523, allocations: 4 kB / 418.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.725e-05/0.2524, allocations: 87.22 kB / 418.6 MB, free: 8.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2524, allocations: 0 / 418.6 MB, free: 8.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004107/0.2528, allocations: 151.5 kB / 418.7 MB, free: 8.555 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.001107/0.2539, allocations: 0.5053 MB / 419.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.057e-05/0.254, allocations: 7.984 kB / 419.2 MB, free: 8.113 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.254, allocations: 0 / 419.2 MB, free: 8.113 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.012e-05/0.254, allocations: 8.062 kB / 419.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.2541, allocations: 3.938 kB / 419.2 MB, free: 8.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000234/0.2543, allocations: 102.7 kB / 419.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.2546, allocations: 0.669 MB / 420 MB, free: 7.281 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.994e-05/0.2547, allocations: 11.98 kB / 420 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.104e-05/0.2547, allocations: 11.44 kB / 420 MB, free: 7.258 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2547, allocations: 4.062 kB / 420 MB, free: 7.254 MB / 334.1 MB Notification: Performance of Templates: time 0.006835/0.2615, allocations: 3.127 MB / 423.2 MB, free: 4.125 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches