Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001082/0.001082, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001124/0.001124, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.585/1.585, allocations: 205.1 MB / 224 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 56.23 kB / 280.1 MB, free: 3.516 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09675/0.09799, allocations: 46.63 MB / 326.8 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002784/0.1008, allocations: 1.252 MB / 328 MB, free: 3.547 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00322/0.1041, allocations: 1.98 MB / 330 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.502e-05/0.1041, allocations: 0 / 330 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.968e-05/0.1042, allocations: 0 / 330 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001699/0.1059, allocations: 383.2 kB / 330.4 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.389e-05/0.106, allocations: 4 kB / 330.4 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.361e-05/0.106, allocations: 15.92 kB / 330.4 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.269e-05/0.1061, allocations: 4 kB / 330.4 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.618e-05/0.1061, allocations: 4 kB / 330.4 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.1062, allocations: 15.86 kB / 330.4 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.337e-06/0.1063, allocations: 0 / 330.4 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007946/0.1071, allocations: 427.5 kB / 330.8 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.331e-05/0.1071, allocations: 0 / 330.8 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.896e-05/0.1071, allocations: 8 kB / 330.8 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005311/0.1077, allocations: 339.4 kB / 331.2 MB, free: 388 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.118e-05/0.1077, allocations: 7.922 kB / 331.2 MB, free: 380 kB / 270.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.1077, allocations: 0 / 331.2 MB, free: 380 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1077, allocations: 0 / 331.2 MB, free: 380 kB / 270.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.0005655/0.1083, allocations: 407.3 kB / 331.6 MB, free: 15.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1083, allocations: 8.031 kB / 331.6 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.589e-05/0.1084, allocations: 80.2 kB / 331.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.1086, allocations: 243.9 kB / 331.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.782e-05/0.1087, allocations: 154.9 kB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.1088, allocations: 154.7 kB / 332.2 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.335e-05/0.1089, allocations: 105 kB / 332.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.672e-05/0.1089, allocations: 75.28 kB / 332.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.927e-05/0.109, allocations: 150.6 kB / 332.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.285e-05/0.1091, allocations: 158.5 kB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.333e-05/0.1091, allocations: 158.5 kB / 332.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002694/0.1094, allocations: 442 kB / 333.3 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.093e-05/0.1095, allocations: 169.1 kB / 333.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.583e-05/0.1096, allocations: 84.08 kB / 333.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.1096, allocations: 79.28 kB / 333.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.1098, allocations: 47.34 kB / 333.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.104e-06/0.1098, allocations: 0 / 333.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001527/0.11, allocations: 41.69 kB / 333.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.11, allocations: 51.41 kB / 333.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.1101, allocations: 93.98 kB / 333.8 MB, free: 13.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.1102, allocations: 29.7 kB / 333.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.207e-05/0.1102, allocations: 88.14 kB / 333.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.408e-05/0.1102, allocations: 7.844 kB / 333.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.1103, allocations: 13.7 kB / 334 MB, free: 13.37 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1104, allocations: 310.8 kB / 334.3 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.087e-05/0.1104, allocations: 4 kB / 334.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-06/0.1104, allocations: 4 kB / 334.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.235e-05/0.1104, allocations: 12.92 kB / 334.3 MB, free: 13.04 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1105, allocations: 0 / 334.3 MB, free: 13.04 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.212e-05/0.1105, allocations: 37.58 kB / 334.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1105, allocations: 4 kB / 334.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1105, allocations: 3.984 kB / 334.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1106, allocations: 192 / 334.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.195e-05/0.1106, allocations: 4 kB / 334.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1106, allocations: 3.938 kB / 334.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.561e-05/0.1106, allocations: 0 / 334.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.1106, allocations: 0 / 334.3 MB, free: 12.98 MB / 286.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 8.332e-05/0.1107, allocations: 117.8 kB / 334.5 MB, free: 12.85 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.938e-06/0.1107, allocations: 4 kB / 334.5 MB, free: 12.85 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.1108, allocations: 11.08 kB / 334.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.1108, allocations: 0 / 334.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1108, allocations: 0 / 334.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1108, allocations: 7.922 kB / 334.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.1109, allocations: 149.6 kB / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.111, allocations: 0 / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.111, allocations: 0 / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.111, allocations: 4 kB / 334.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.111, allocations: 7.984 kB / 334.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.111, allocations: 4 kB / 334.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.111, allocations: 0 / 334.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.026e-05/0.1111, allocations: 57.08 kB / 334.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.082e-05/0.1111, allocations: 81.05 kB / 334.8 MB, free: 12.44 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.1111, allocations: 7.984 kB / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.145e-05/0.1112, allocations: 0 / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-06/0.1112, allocations: 4.031 kB / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-06/0.1112, allocations: 0 / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.926e-05/0.1112, allocations: 83.28 kB / 334.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1112, allocations: 0 / 334.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004061/0.1116, allocations: 131.9 kB / 335 MB, free: 12.22 MB / 286.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.0009482/0.1126, allocations: 462.4 kB / 335.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 8.959e-05/0.1127, allocations: 8 kB / 335.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1127, allocations: 0 / 335.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.935e-06/0.1127, allocations: 4 kB / 335.5 MB, free: 11.76 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.1129, allocations: 3.938 kB / 335.5 MB, free: 11.76 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002685/0.1131, allocations: 114.6 kB / 335.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.1134, allocations: 0.6768 MB / 336.3 MB, free: 10.92 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.822e-05/0.1134, allocations: 16.05 kB / 336.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/0.1134, allocations: 11.44 kB / 336.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1134, allocations: 4 kB / 336.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of Templates: time 0.006633/0.1201, allocations: 2.766 MB / 339 MB, free: 8.117 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches