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.001348/0.001348, allocations: 109.8 kB / 17.68 MB, free: 5.332 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.001535/0.001535, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.395/1.395, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 44.19 kB / 302 MB, free: 5.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.09996, allocations: 49.45 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002567/0.1026, allocations: 1.189 MB / 352.7 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.1056, allocations: 1.955 MB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.483e-05/0.1056, allocations: 4 kB / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.899e-05/0.1057, allocations: 0 / 354.6 MB, free: 0.5547 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.001209/0.1069, allocations: 437.8 kB / 355.1 MB, free: 132 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.407e-05/0.1069, allocations: 4 kB / 355.1 MB, free: 128 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.611e-05/0.107, allocations: 7.938 kB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.246e-05/0.107, allocations: 4 kB / 355.1 MB, free: 116 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.069e-05/0.107, allocations: 7.922 kB / 355.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003539/0.1074, allocations: 12 kB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.398e-06/0.1074, allocations: 0 / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007017/0.1081, allocations: 487.4 kB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.029e-05/0.1081, allocations: 0 / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.324e-05/0.1082, allocations: 3.938 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005366/0.1087, allocations: 331.5 kB / 355.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1087, allocations: 0 / 355.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1087, allocations: 3.938 kB / 355.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1087, allocations: 0 / 355.9 MB, free: 15.29 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.0004553/0.1092, allocations: 407.4 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.1092, allocations: 12.03 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.09e-05/0.1093, allocations: 80.22 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.1095, allocations: 243.6 kB / 356.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.933e-05/0.1095, allocations: 154.9 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.1096, allocations: 158.6 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.411e-05/0.1097, allocations: 101 kB / 357 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.1097, allocations: 79.28 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.446e-05/0.1098, allocations: 154.6 kB / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.183e-05/0.1098, allocations: 150.6 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.081e-05/0.1099, allocations: 150.6 kB / 357.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002758/0.1101, allocations: 449.9 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.052e-05/0.1102, allocations: 173.1 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.602e-05/0.1103, allocations: 84.08 kB / 358.2 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.1103, allocations: 75.28 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/0.1105, allocations: 47.41 kB / 358.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.585e-06/0.1105, allocations: 0 / 358.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001313/0.1106, allocations: 45.55 kB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.1106, allocations: 51.41 kB / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.746e-05/0.1107, allocations: 105.8 kB / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.1108, allocations: 25.7 kB / 358.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.161e-05/0.1108, allocations: 84.08 kB / 358.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.262e-05/0.1108, allocations: 0 / 358.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.859e-05/0.1108, allocations: 13.72 kB / 358.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.1109, allocations: 314.8 kB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-06/0.111, allocations: 4.125 kB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.719e-06/0.111, allocations: 0 / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.175e-05/0.111, allocations: 20.78 kB / 359 MB, free: 11.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.111, allocations: 0 / 359 MB, free: 11.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.702e-05/0.1111, allocations: 33.64 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1111, allocations: 8 kB / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1111, allocations: 0 / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.1111, allocations: 0 / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.037e-05/0.1112, allocations: 96 / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.1112, allocations: 4 kB / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.618e-05/0.1112, allocations: 0 / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.1112, allocations: 0 / 359.1 MB, free: 11.89 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.351e-05/0.1113, allocations: 121.7 kB / 359.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.129e-05/0.1113, allocations: 3.984 kB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.718e-05/0.1113, allocations: 3.125 kB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.1113, allocations: 3.938 kB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1113, allocations: 4 kB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1114, allocations: 0 / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.1115, allocations: 153.6 kB / 359.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1115, allocations: 0 / 359.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.582e-06/0.1115, allocations: 7.938 kB / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1115, allocations: 0 / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-06/0.1115, allocations: 0 / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1115, allocations: 0 / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1115, allocations: 192 / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.996e-05/0.1116, allocations: 65.06 kB / 359.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.1117, allocations: 85.12 kB / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.1117, allocations: 0 / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.249e-05/0.1117, allocations: 0 / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.235e-05/0.1117, allocations: 0 / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.1117, allocations: 0 / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.696e-05/0.1118, allocations: 87.27 kB / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1118, allocations: 7.938 kB / 359.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.1121, allocations: 124 kB / 359.7 MB, free: 11.13 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.0008401/0.113, allocations: 484.9 kB / 360.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.828e-05/0.1131, allocations: 7.984 kB / 360.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1131, allocations: 4.062 kB / 360.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.813e-06/0.1131, allocations: 4 kB / 360.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.1132, allocations: 6.75 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000207/0.1134, allocations: 118.5 kB / 360.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001863/0.1136, allocations: 0.669 MB / 361 MB, free: 9.867 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.604e-05/0.1137, allocations: 15.92 kB / 361 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.138e-05/0.1137, allocations: 15.5 kB / 361 MB, free: 9.836 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1137, allocations: 0 / 361 MB, free: 9.836 MB / 302.1 MB Notification: Performance of Templates: time 0.00542/0.1191, allocations: 2.762 MB / 363.8 MB, free: 7.074 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 -s cvode -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/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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches