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.001146/0.001146, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001478/0.001478, allocations: 189.1 kB / 19.33 MB, free: 3.758 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.631/1.631, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001526/0.001526, allocations: 51.92 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.115, allocations: 46.61 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.003218/0.1183, allocations: 1.19 MB / 377 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004124/0.1224, allocations: 1.999 MB / 379 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.508e-05/0.1225, allocations: 0 / 379 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.683e-05/0.1226, allocations: 4 kB / 379 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001666/0.1243, allocations: 438.6 kB / 379.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.184e-05/0.1243, allocations: 0 / 379.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.148e-05/0.1244, allocations: 11.92 kB / 379.4 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.605e-05/0.1244, allocations: 8 kB / 379.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.863e-05/0.1245, allocations: 7.984 kB / 379.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.1246, allocations: 11.88 kB / 379.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.1247, allocations: 4 kB / 379.4 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.1258, allocations: 475.5 kB / 379.9 MB, free: 460 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.1258, allocations: 4 kB / 379.9 MB, free: 456 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.493e-05/0.1259, allocations: 0 / 379.9 MB, free: 456 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008227/0.1267, allocations: 335.4 kB / 380.2 MB, free: 120 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1267, allocations: 0 / 380.2 MB, free: 120 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1267, allocations: 0 / 380.2 MB, free: 120 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.1267, allocations: 4 kB / 380.2 MB, free: 116 kB / 318.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.2792/0.4059, allocations: 403 kB / 380.6 MB, free: 13.58 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.406, allocations: 9.75 kB / 380.7 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.545e-05/0.4061, allocations: 78.44 kB / 380.7 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.4062, allocations: 250.2 kB / 381 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.4063, allocations: 153.9 kB / 381.1 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.4063, allocations: 151.7 kB / 381.3 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.225e-05/0.4063, allocations: 104.2 kB / 381.4 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.4064, allocations: 77.03 kB / 381.4 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.4064, allocations: 157 kB / 381.6 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.612e-05/0.4064, allocations: 150.6 kB / 381.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.411e-05/0.4065, allocations: 160.9 kB / 381.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002224/0.4067, allocations: 448.2 kB / 382.3 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.642e-05/0.4068, allocations: 169.2 kB / 382.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.324e-05/0.4068, allocations: 82.31 kB / 382.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.889e-05/0.4068, allocations: 78.62 kB / 382.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000191/0.407, allocations: 50.34 kB / 382.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.374e-06/0.407, allocations: 0 / 382.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001437/0.4072, allocations: 43.39 kB / 382.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.4072, allocations: 53.72 kB / 382.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.805e-05/0.4073, allocations: 101.1 kB / 382.9 MB, free: 11.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.426e-06/0.4073, allocations: 28.03 kB / 382.9 MB, free: 11.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.309e-05/0.4074, allocations: 80.64 kB / 383 MB, free: 11.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.4074, allocations: 7.094 kB / 383 MB, free: 11.15 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.4074, allocations: 11.64 kB / 383 MB, free: 11.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.183e-05/0.4075, allocations: 313 kB / 383.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.969e-06/0.4075, allocations: 0.7031 kB / 383.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.368e-06/0.4075, allocations: 5 kB / 383.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.19e-05/0.4075, allocations: 13.59 kB / 383.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4075, allocations: 0 / 383.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.779e-05/0.4076, allocations: 33.72 kB / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.4076, allocations: 8.812 kB / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4076, allocations: 0 / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.4076, allocations: 4.719 kB / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.642e-05/0.4077, allocations: 4.156 kB / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4077, allocations: 0 / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.676e-05/0.4077, allocations: 0.9688 kB / 383.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.4077, allocations: 0.9844 kB / 383.4 MB, free: 10.78 MB / 318.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 5.994e-05/0.4078, allocations: 107.2 kB / 383.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.4078, allocations: 10.58 kB / 383.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.354e-05/0.4078, allocations: 9.109 kB / 383.5 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.4078, allocations: 3.844 kB / 383.5 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.4078, allocations: 1.25 kB / 383.5 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.4078, allocations: 0.6562 kB / 383.5 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.408, allocations: 153.8 kB / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.408, allocations: 4.547 kB / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.755e-06/0.408, allocations: 0 / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.408, allocations: 5.094 kB / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.408, allocations: 5.031 kB / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.408, allocations: 0 / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.408, allocations: 0.7969 kB / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.758e-05/0.4081, allocations: 61.02 kB / 383.8 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.055e-05/0.4081, allocations: 79.05 kB / 383.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.4081, allocations: 5.906 kB / 383.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.219e-05/0.4081, allocations: 0 / 383.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.411e-05/0.4082, allocations: 1.844 kB / 383.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-06/0.4082, allocations: 0 / 383.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.417e-05/0.4082, allocations: 93.22 kB / 383.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4082, allocations: 4 kB / 383.9 MB, free: 10.22 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005556/0.4088, allocations: 123.6 kB / 384.1 MB, free: 10.22 MB / 318.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.001059/0.4098, allocations: 464.9 kB / 384.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.255e-05/0.4099, allocations: 11.14 kB / 384.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.41, allocations: 1.375 kB / 384.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.853e-06/0.41, allocations: 2.125 kB / 384.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.4101, allocations: 9.406 kB / 384.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002573/0.4104, allocations: 125 kB / 384.7 MB, free: 9.895 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.4105, allocations: 0.6738 MB / 385.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.523e-05/0.4106, allocations: 12.73 kB / 385.3 MB, free: 9.191 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4106, allocations: 0 / 385.3 MB, free: 9.191 MB / 318.1 MB Notification: Performance of Templates: time 0.008402/0.419, allocations: 3.094 MB / 388.4 MB, free: 8.871 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches