Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.481/1.481, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 64.08 kB / 307.9 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1036, allocations: 50.55 MB / 358.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00293/0.1066, allocations: 1.191 MB / 359.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004132/0.1108, allocations: 2.08 MB / 361.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.499e-05/0.1109, allocations: 0 / 361.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.178e-05/0.1109, allocations: 0 / 361.7 MB, free: 10.68 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/Utilities/Examples.mo:279:3-378: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.001964/0.1129, allocations: 469.9 kB / 362.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.443e-05/0.113, allocations: 7.984 kB / 362.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.936e-05/0.1131, allocations: 7.938 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.297e-05/0.1131, allocations: 4 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.232e-05/0.1132, allocations: 0 / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.1133, allocations: 23.92 kB / 362.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.1134, allocations: 0 / 362.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.1144, allocations: 471.5 kB / 362.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.409e-05/0.1145, allocations: 0 / 362.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.363e-05/0.1145, allocations: 7.938 kB / 362.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000966/0.1155, allocations: 375.4 kB / 363 MB, free: 9.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1155, allocations: 3.984 kB / 363 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1155, allocations: 0 / 363 MB, free: 9.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1155, allocations: 4 kB / 363 MB, free: 9.332 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.0007043/0.1162, allocations: 419.6 kB / 363.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.1163, allocations: 16.03 kB / 363.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.255e-05/0.1164, allocations: 80.2 kB / 363.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.1166, allocations: 239.7 kB / 363.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.509e-05/0.1167, allocations: 150.9 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.741e-05/0.1168, allocations: 158.7 kB / 364.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.998e-05/0.1169, allocations: 112.9 kB / 364.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.722e-05/0.1169, allocations: 79.28 kB / 364.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.802e-05/0.117, allocations: 154.6 kB / 364.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.871e-05/0.1171, allocations: 150.6 kB / 364.6 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.849e-05/0.1172, allocations: 154.6 kB / 364.7 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000379/0.1176, allocations: 445.9 kB / 365.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.1177, allocations: 177.1 kB / 365.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.657e-05/0.1177, allocations: 84.08 kB / 365.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.849e-05/0.1178, allocations: 75.28 kB / 365.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.118, allocations: 39.42 kB / 365.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.605e-06/0.118, allocations: 4 kB / 365.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001865/0.1182, allocations: 45.53 kB / 365.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.1183, allocations: 55.34 kB / 365.6 MB, free: 6.555 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.1184, allocations: 101.9 kB / 365.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.1184, allocations: 29.69 kB / 365.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.846e-05/0.1185, allocations: 80.14 kB / 365.8 MB, free: 6.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.1185, allocations: 0 / 365.8 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.539e-05/0.1185, allocations: 13.72 kB / 365.8 MB, free: 6.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1187, allocations: 319 kB / 366.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.051e-05/0.1187, allocations: 0 / 366.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.636e-06/0.1187, allocations: 4 kB / 366.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.482e-05/0.1187, allocations: 4.859 kB / 366.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1188, allocations: 0 / 366.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.556e-05/0.1188, allocations: 45.56 kB / 366.2 MB, free: 5.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1189, allocations: 5.719 kB / 366.2 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1189, allocations: 96 / 366.2 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1189, allocations: 4 kB / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.425e-05/0.1189, allocations: 0 / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1189, allocations: 0 / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.109e-05/0.119, allocations: 0 / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-06/0.119, allocations: 4 kB / 366.2 MB, free: 5.914 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 9.375e-05/0.1191, allocations: 113.8 kB / 366.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.1191, allocations: 0 / 366.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.947e-05/0.1191, allocations: 15.06 kB / 366.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1192, allocations: 0 / 366.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1192, allocations: 4 kB / 366.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1192, allocations: 0 / 366.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.1194, allocations: 153.6 kB / 366.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1194, allocations: 0 / 366.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-06/0.1194, allocations: 0 / 366.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1194, allocations: 0 / 366.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.1195, allocations: 0 / 366.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.1195, allocations: 7.938 kB / 366.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1195, allocations: 0 / 366.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.1196, allocations: 69.2 kB / 366.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.1197, allocations: 85 kB / 366.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.1197, allocations: 3.984 kB / 366.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.501e-05/0.1197, allocations: 0 / 366.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.818e-05/0.1197, allocations: 7.938 kB / 366.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.1197, allocations: 0 / 366.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.561e-05/0.1198, allocations: 83.28 kB / 366.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1198, allocations: 0 / 366.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000566/0.1204, allocations: 148 kB / 366.9 MB, free: 5.137 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.001363/0.1217, allocations: 0.4962 MB / 367.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.353e-05/0.1219, allocations: 11.94 kB / 367.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1219, allocations: 0 / 367.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.057e-05/0.1219, allocations: 4 kB / 367.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001452/0.122, allocations: 7.062 kB / 367.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003358/0.1224, allocations: 132.2 kB / 367.5 MB, free: 4.531 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.1228, allocations: 0.6729 MB / 368.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.88e-05/0.1228, allocations: 19.55 kB / 368.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1228, allocations: 0 / 368.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of Templates: time 0.007324/0.1302, allocations: 3.387 MB / 371.6 MB, free: 432 kB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches