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.001167/0.001167, allocations: 96.83 kB / 16.93 MB, free: 5.98 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.001388/0.001389, allocations: 181.3 kB / 17.82 MB, free: 5.652 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.528/1.528, allocations: 205.4 MB / 224 MB, free: 13.17 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.0006417/0.000642, allocations: 16 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1034, allocations: 47.59 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001382/0.1048, allocations: 0.9102 MB / 329.2 MB, free: 3.188 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002784/0.1076, allocations: 1.85 MB / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.743e-05/0.1077, allocations: 0 / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.734e-05/0.1077, allocations: 0 / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00109/0.1088, allocations: 319.1 kB / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.486e-05/0.1088, allocations: 0 / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 3.908e-05/0.1089, allocations: 11.97 kB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.781e-05/0.1089, allocations: 4 kB / 331.4 MB, free: 1 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.309e-05/0.109, allocations: 7.984 kB / 331.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.906e-05/0.109, allocations: 4 kB / 331.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.835e-06/0.1091, allocations: 0 / 331.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006477/0.1097, allocations: 351.5 kB / 331.8 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.221e-05/0.1097, allocations: 11.92 kB / 331.8 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.812e-05/0.1098, allocations: 25.7 kB / 331.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.1102, allocations: 223.6 kB / 332 MB, free: 392 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1102, allocations: 4 kB / 332 MB, free: 388 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1102, allocations: 0 / 332 MB, free: 388 kB / 270.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1102, allocations: 0 / 332 MB, free: 388 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.0004784/0.1107, allocations: 399.3 kB / 332.4 MB, free: 15.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.1107, allocations: 8.031 kB / 332.4 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.707e-05/0.1108, allocations: 83.19 kB / 332.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002088/0.111, allocations: 250.6 kB / 332.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.46e-05/0.1111, allocations: 162.5 kB / 332.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.1111, allocations: 150.6 kB / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.653e-05/0.1112, allocations: 101 kB / 333.1 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.1113, allocations: 75.28 kB / 333.2 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.7e-05/0.1114, allocations: 154.5 kB / 333.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.182e-05/0.1114, allocations: 154.6 kB / 333.5 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.868e-05/0.1115, allocations: 158.6 kB / 333.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003336/0.1119, allocations: 445.9 kB / 334.1 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.583e-05/0.112, allocations: 173.1 kB / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.112, allocations: 79.23 kB / 334.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001498/0.1122, allocations: 51.34 kB / 334.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.645e-06/0.1122, allocations: 0 / 334.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001453/0.1123, allocations: 33.64 kB / 334.4 MB, free: 13.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.1124, allocations: 51.41 kB / 334.5 MB, free: 13.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.633e-05/0.1125, allocations: 105.8 kB / 334.6 MB, free: 13.6 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.1125, allocations: 25.7 kB / 334.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.564e-05/0.1126, allocations: 88.27 kB / 334.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.1126, allocations: 0 / 334.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-06/0.1126, allocations: 0 / 334.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1127, allocations: 314.8 kB / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.785e-06/0.1127, allocations: 0 / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.278e-06/0.1127, allocations: 0 / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.36e-05/0.1128, allocations: 0 / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1128, allocations: 0 / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.469e-05/0.1128, allocations: 49.48 kB / 335.1 MB, free: 13.11 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1129, allocations: 8.094 kB / 335.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1129, allocations: 0 / 335.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.1129, allocations: 0 / 335.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.043e-05/0.1129, allocations: 0 / 335.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.1129, allocations: 0 / 335.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.922e-05/0.113, allocations: 11.94 kB / 335.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.113, allocations: 0 / 335.1 MB, free: 13.09 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.014e-05/0.1131, allocations: 105.8 kB / 335.2 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/0.1131, allocations: 7.938 kB / 335.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.613e-05/0.1131, allocations: 15.08 kB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1131, allocations: 0 / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1131, allocations: 0 / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1132, allocations: 0 / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.1133, allocations: 153.7 kB / 335.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1133, allocations: 0 / 335.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.46e-06/0.1133, allocations: 4 kB / 335.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1133, allocations: 0 / 335.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.1133, allocations: 3.953 kB / 335.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1134, allocations: 0 / 335.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1134, allocations: 0 / 335.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.698e-05/0.1134, allocations: 65.06 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.711e-05/0.1135, allocations: 81.11 kB / 335.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.1135, allocations: 0 / 335.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.46e-05/0.1135, allocations: 7.953 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.82e-05/0.1136, allocations: 0 / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.1136, allocations: 0 / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.352e-05/0.1136, allocations: 83.27 kB / 335.6 MB, free: 12.47 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1136, allocations: 7.969 kB / 335.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000433/0.1141, allocations: 131.9 kB / 335.7 MB, free: 12.33 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009164/0.115, allocations: 457.8 kB / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 6.621e-05/0.1151, allocations: 11.88 kB / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1151, allocations: 0 / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.32e-06/0.1151, allocations: 0 / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001056/0.1152, allocations: 4.125 kB / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002875/0.1155, allocations: 120.6 kB / 336.3 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1158, allocations: 0.677 MB / 337 MB, free: 11.03 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.971e-05/0.1159, allocations: 7.984 kB / 337 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.345e-05/0.1159, allocations: 11.44 kB / 337 MB, free: 11.01 MB / 286.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1159, allocations: 0 / 337 MB, free: 11.01 MB / 286.1 MB Notification: Performance of Templates: time 0.006522/0.1224, allocations: 2.731 MB / 339.7 MB, free: 8.277 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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