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.001563/0.001563, allocations: 114.9 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.002161/0.002162, allocations: 205.9 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2486, allocations: 50.53 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00185/0.2504, allocations: 1.206 MB / 410.4 MB, free: 392 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.2532, allocations: 2.073 MB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.9e-05/0.2532, allocations: 3.938 kB / 412.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.793e-05/0.2532, allocations: 4 kB / 412.5 MB, free: 14.29 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.001275/0.2545, allocations: 466.5 kB / 412.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.158e-05/0.2546, allocations: 11.92 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.256e-05/0.2546, allocations: 11.92 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.839e-05/0.2547, allocations: 0 / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.123e-05/0.2547, allocations: 4 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.255, allocations: 15.92 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.298e-06/0.255, allocations: 0 / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007149/0.2557, allocations: 0.5111 MB / 413.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.271e-05/0.2558, allocations: 3.984 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.23e-05/0.2558, allocations: 8 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004622/0.2563, allocations: 375.4 kB / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2563, allocations: 0 / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2563, allocations: 0 / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.2563, allocations: 0 / 413.9 MB, free: 12.9 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.0004194/0.2567, allocations: 419.3 kB / 414.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.2567, allocations: 12.03 kB / 414.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.022e-05/0.2568, allocations: 80.12 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.257, allocations: 247.7 kB / 414.6 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.541e-05/0.257, allocations: 150.9 kB / 414.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.758e-05/0.2571, allocations: 162.6 kB / 414.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.305e-05/0.2572, allocations: 101 kB / 415 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.2572, allocations: 75.28 kB / 415.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.541e-05/0.2572, allocations: 150.6 kB / 415.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-05/0.2573, allocations: 154.6 kB / 415.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.422e-05/0.2573, allocations: 154.6 kB / 415.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002821/0.2576, allocations: 445.9 kB / 416 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.413e-05/0.2577, allocations: 169.1 kB / 416.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.226e-05/0.2577, allocations: 92.12 kB / 416.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.2578, allocations: 83.27 kB / 416.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001255/0.2579, allocations: 47.41 kB / 416.4 MB, free: 10.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.234e-06/0.2579, allocations: 0 / 416.4 MB, free: 10.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001245/0.258, allocations: 33.64 kB / 416.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.2581, allocations: 51.53 kB / 416.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.2582, allocations: 109.8 kB / 416.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.2582, allocations: 25.7 kB / 416.6 MB, free: 9.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.2582, allocations: 84.08 kB / 416.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.224e-05/0.2582, allocations: 3.984 kB / 416.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.2583, allocations: 13.72 kB / 416.7 MB, free: 9.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.033e-05/0.2584, allocations: 314.8 kB / 417 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.444e-06/0.2584, allocations: 0 / 417 MB, free: 9.562 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-06/0.2584, allocations: 4 kB / 417 MB, free: 9.559 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.122e-05/0.2584, allocations: 16.78 kB / 417 MB, free: 9.539 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2584, allocations: 0 / 417 MB, free: 9.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.393e-05/0.2585, allocations: 45.48 kB / 417.1 MB, free: 9.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.2585, allocations: 4 kB / 417.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.2585, allocations: 0 / 417.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2585, allocations: 0 / 417.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.05e-05/0.2585, allocations: 0 / 417.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.2586, allocations: 0 / 417.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.714e-05/0.2586, allocations: 4.094 kB / 417.1 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.2586, allocations: 4 kB / 417.1 MB, free: 9.477 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.383e-05/0.2587, allocations: 121.7 kB / 417.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.2587, allocations: 0 / 417.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.428e-05/0.2587, allocations: 11.08 kB / 417.2 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2587, allocations: 0 / 417.2 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.2587, allocations: 0 / 417.2 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.2587, allocations: 0 / 417.2 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.2588, allocations: 157.6 kB / 417.4 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2588, allocations: 0 / 417.4 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.628e-06/0.2589, allocations: 7.938 kB / 417.4 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.2589, allocations: 0 / 417.4 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.2589, allocations: 0 / 417.4 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2589, allocations: 4 kB / 417.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2589, allocations: 0 / 417.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.317e-05/0.2589, allocations: 61.06 kB / 417.4 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.433e-05/0.259, allocations: 77.11 kB / 417.5 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.259, allocations: 0 / 417.5 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.276e-05/0.259, allocations: 8.031 kB / 417.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.093e-05/0.259, allocations: 4 kB / 417.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.259, allocations: 0 / 417.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.736e-05/0.2591, allocations: 83.27 kB / 417.6 MB, free: 8.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2591, allocations: 3.938 kB / 417.6 MB, free: 8.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003929/0.2595, allocations: 144 kB / 417.7 MB, free: 8.707 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.0009141/0.2604, allocations: 0.4965 MB / 418.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.334e-05/0.2605, allocations: 7.938 kB / 418.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2605, allocations: 0 / 418.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.053e-06/0.2605, allocations: 4.062 kB / 418.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.2606, allocations: 8 kB / 418.3 MB, free: 8.242 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002073/0.2609, allocations: 102.7 kB / 418.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.2611, allocations: 0.6729 MB / 419 MB, free: 7.418 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.173e-05/0.2612, allocations: 15.84 kB / 419 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.18e-05/0.2612, allocations: 15.42 kB / 419.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2612, allocations: 0 / 419.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of Templates: time 0.006123/0.2673, allocations: 3.133 MB / 422.2 MB, free: 4.25 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