Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 106.2 kB / 16.62 MB, free: 6.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 193.8 kB / 17.55 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 241.2 MB, free: 15.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009052/0.0009052, allocations: 46.31 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.08373, allocations: 49.45 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00225/0.086, allocations: 1.262 MB / 350.8 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.08877, allocations: 1.932 MB / 352.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.19e-05/0.08882, allocations: 0 / 352.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.08884, allocations: 0 / 352.7 MB, free: 1.543 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.001046/0.08992, allocations: 390.5 kB / 353.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.985e-05/0.08995, allocations: 0 / 353.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 3.949e-05/0.09, allocations: 15.94 kB / 353.1 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.07e-05/0.09004, allocations: 0 / 353.1 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.233e-05/0.09006, allocations: 7.938 kB / 353.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.09018, allocations: 11.97 kB / 353.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-06/0.09019, allocations: 0 / 353.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005434/0.09074, allocations: 423.6 kB / 353.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.137e-05/0.09076, allocations: 3.984 kB / 353.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.659e-05/0.09079, allocations: 7.938 kB / 353.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004011/0.0912, allocations: 335.4 kB / 353.9 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.09121, allocations: 0 / 353.9 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09122, allocations: 4 kB / 353.9 MB, free: 380 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.09123, allocations: 0 / 353.9 MB, free: 380 kB / 286.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.0003855/0.09162, allocations: 411.4 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.922e-05/0.09166, allocations: 11.97 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.679e-05/0.09171, allocations: 76.22 kB / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.09184, allocations: 243.9 kB / 354.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.922e-05/0.09189, allocations: 154.9 kB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.09193, allocations: 158.7 kB / 355 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.795e-05/0.09199, allocations: 108.9 kB / 355.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.09201, allocations: 75.28 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.09206, allocations: 150.6 kB / 355.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.222e-05/0.09211, allocations: 150.6 kB / 355.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.254e-05/0.09215, allocations: 150.6 kB / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002301/0.09239, allocations: 453.9 kB / 356 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.771e-05/0.09245, allocations: 169.1 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.237e-05/0.09249, allocations: 84.12 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.09252, allocations: 79.28 kB / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.687e-05/0.09261, allocations: 51.41 kB / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.044e-06/0.09262, allocations: 0 / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001068/0.09273, allocations: 37.55 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.09279, allocations: 55.41 kB / 356.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.126e-05/0.09287, allocations: 101.8 kB / 356.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.187e-06/0.09289, allocations: 29.64 kB / 356.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.337e-05/0.09292, allocations: 88.27 kB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.171e-05/0.09294, allocations: 3.984 kB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.323e-05/0.09297, allocations: 13.72 kB / 356.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.474e-05/0.09306, allocations: 310.8 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.536e-06/0.09307, allocations: 4 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.108e-06/0.09308, allocations: 0 / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.925e-05/0.0931, allocations: 8.844 kB / 357 MB, free: 13.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.09311, allocations: 4 kB / 357 MB, free: 13.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.774e-05/0.09317, allocations: 45.64 kB / 357.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.09318, allocations: 4 kB / 357.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.09319, allocations: 4 kB / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.09321, allocations: 192 / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.852e-05/0.09323, allocations: 4 kB / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.09324, allocations: 0 / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.377e-05/0.09325, allocations: 0 / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-06/0.09326, allocations: 0 / 357.1 MB, free: 12.96 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 6.33e-05/0.09333, allocations: 113.8 kB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.09335, allocations: 12.02 kB / 357.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.053e-05/0.09338, allocations: 3.125 kB / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.09338, allocations: 0 / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.09339, allocations: 0 / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.0934, allocations: 0 / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.0935, allocations: 161.5 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.09351, allocations: 0 / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.116e-06/0.09352, allocations: 0 / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.09352, allocations: 0 / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-06/0.09353, allocations: 0 / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.09354, allocations: 4 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.09355, allocations: 4 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.009e-05/0.09361, allocations: 65 kB / 357.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.154e-05/0.09365, allocations: 77.11 kB / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.09367, allocations: 4 kB / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.127e-05/0.09368, allocations: 0 / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.0937, allocations: 0 / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.09371, allocations: 0 / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.673e-05/0.09375, allocations: 91.23 kB / 357.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09375, allocations: 0 / 357.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003508/0.09411, allocations: 128 kB / 357.7 MB, free: 12.21 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.0008697/0.09499, allocations: 493.5 kB / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.263e-05/0.09506, allocations: 4 kB / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.09507, allocations: 3.938 kB / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.039e-06/0.09508, allocations: 0 / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.09522, allocations: 11.94 kB / 358.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002015/0.09543, allocations: 114.6 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.09565, allocations: 0.6729 MB / 359 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.36e-05/0.09568, allocations: 7.984 kB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.916e-05/0.0957, allocations: 11.44 kB / 359 MB, free: 10.92 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09571, allocations: 0 / 359 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Templates: time 0.005913/0.1016, allocations: 2.766 MB / 361.8 MB, free: 8.148 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches