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.001454/0.001454, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00169/0.00169, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.96/1.96, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001797, allocations: 59.91 kB / 359.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3973, allocations: 50.54 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002889/0.4002, allocations: 1.207 MB / 411.1 MB, free: 408 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004032/0.4043, allocations: 2.073 MB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.527e-05/0.4044, allocations: 0 / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.16e-05/0.4044, allocations: 0 / 413.2 MB, free: 14.32 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.001727/0.4062, allocations: 462.5 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.511e-05/0.4062, allocations: 7.969 kB / 413.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.451e-05/0.4063, allocations: 15.94 kB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.594e-05/0.4064, allocations: 0 / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.822e-05/0.4064, allocations: 4 kB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005007/0.4069, allocations: 7.938 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.4069, allocations: 4 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.408, allocations: 0.515 MB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.833e-05/0.4081, allocations: 7.922 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.932e-05/0.4081, allocations: 4 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000681/0.4088, allocations: 379.4 kB / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.4088, allocations: 0 / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4088, allocations: 0 / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.4088, allocations: 0 / 414.6 MB, free: 12.92 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.000556/0.4094, allocations: 415.3 kB / 415 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.4094, allocations: 8.031 kB / 415 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.173e-05/0.4095, allocations: 92.12 kB / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.4097, allocations: 239.7 kB / 415.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.925e-05/0.4098, allocations: 154.9 kB / 415.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/0.4099, allocations: 158.7 kB / 415.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.798e-05/0.4099, allocations: 101 kB / 415.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.03e-05/0.41, allocations: 75.28 kB / 415.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.047e-05/0.41, allocations: 154.6 kB / 415.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.946e-05/0.4101, allocations: 150.6 kB / 416.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.965e-05/0.4102, allocations: 154.6 kB / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003345/0.4105, allocations: 449.9 kB / 416.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.389e-05/0.4106, allocations: 173.1 kB / 416.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.998e-05/0.4107, allocations: 84.12 kB / 416.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.4107, allocations: 79.28 kB / 417 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002086/0.4109, allocations: 47.34 kB / 417 MB, free: 10.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 4.499e-06/0.4109, allocations: 4 kB / 417 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001858/0.4111, allocations: 37.64 kB / 417.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.4112, allocations: 55.41 kB / 417.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.4113, allocations: 101.8 kB / 417.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.4113, allocations: 25.7 kB / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.663e-05/0.4114, allocations: 84.14 kB / 417.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.4114, allocations: 0 / 417.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.4115, allocations: 9.719 kB / 417.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.4116, allocations: 319 kB / 417.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.023e-05/0.4116, allocations: 4 kB / 417.7 MB, free: 9.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-06/0.4116, allocations: 0 / 417.7 MB, free: 9.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.15e-05/0.4117, allocations: 16.8 kB / 417.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4117, allocations: 0 / 417.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.617e-05/0.4118, allocations: 37.55 kB / 417.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.4118, allocations: 8 kB / 417.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.4118, allocations: 192 / 417.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4118, allocations: 0 / 417.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.378e-05/0.4119, allocations: 4.094 kB / 417.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.4119, allocations: 3.984 kB / 417.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.584e-05/0.4119, allocations: 3.984 kB / 417.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.4119, allocations: 3.938 kB / 417.7 MB, free: 9.504 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 0.0001003/0.412, allocations: 117.7 kB / 417.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.187e-05/0.4121, allocations: 0 / 417.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.4121, allocations: 11.08 kB / 417.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4121, allocations: 0 / 417.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4121, allocations: 4 kB / 417.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4121, allocations: 4 kB / 417.9 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.4123, allocations: 153.6 kB / 418 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.4123, allocations: 7.938 kB / 418 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.967e-06/0.4123, allocations: 0 / 418 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4123, allocations: 4 kB / 418 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.4123, allocations: 0 / 418 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4123, allocations: 0 / 418 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4124, allocations: 0 / 418 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.791e-05/0.4125, allocations: 69.06 kB / 418.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.81e-05/0.4125, allocations: 81.05 kB / 418.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.4125, allocations: 0 / 418.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.574e-05/0.4126, allocations: 0 / 418.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.804e-05/0.4126, allocations: 3.984 kB / 418.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.4126, allocations: 0 / 418.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.816e-05/0.4126, allocations: 83.28 kB / 418.3 MB, free: 8.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4127, allocations: 4 kB / 418.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006741/0.4133, allocations: 140 kB / 418.4 MB, free: 8.734 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.001344/0.4147, allocations: 0.5005 MB / 418.9 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.656e-05/0.4148, allocations: 15.94 kB / 418.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4148, allocations: 0 / 418.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.163e-06/0.4148, allocations: 0 / 418.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.415, allocations: 14.58 kB / 418.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000342/0.4154, allocations: 120.5 kB / 419.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.4157, allocations: 0.6768 MB / 419.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.979e-05/0.4157, allocations: 11.44 kB / 419.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4157, allocations: 4.062 kB / 419.7 MB, free: 7.395 MB / 334.1 MB Notification: Performance of Templates: time 0.008488/0.4242, allocations: 3.401 MB / 423.2 MB, free: 3.988 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/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