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.001199/0.001198, allocations: 110.1 kB / 17.17 MB, free: 6.344 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.001151/0.001152, allocations: 198.9 kB / 18.08 MB, free: 5.434 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.333/1.333, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 42.38 kB / 300.6 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1024, allocations: 49.45 MB / 350 MB, free: 4.891 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002819/0.1053, allocations: 1.258 MB / 351.3 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003223/0.1086, allocations: 1.987 MB / 353.3 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.963e-05/0.1086, allocations: 4 kB / 353.3 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.908e-05/0.1086, allocations: 0 / 353.3 MB, free: 1.617 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.001152/0.1098, allocations: 338.4 kB / 353.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.548e-05/0.1099, allocations: 7.984 kB / 353.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.015e-05/0.1099, allocations: 7.938 kB / 353.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.379e-05/0.1099, allocations: 0 / 353.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.876e-05/0.11, allocations: 7.938 kB / 353.6 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.1101, allocations: 7.984 kB / 353.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.288e-06/0.1101, allocations: 0 / 353.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007263/0.1109, allocations: 431.5 kB / 354.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.1109, allocations: 7.984 kB / 354.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.1109, allocations: 7.938 kB / 354.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003951/0.1113, allocations: 219.6 kB / 354.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1113, allocations: 0 / 354.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1113, allocations: 4 kB / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.1113, allocations: 0 / 354.3 MB, free: 0.6016 MB / 286.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.0004547/0.1118, allocations: 403.4 kB / 354.7 MB, free: 164 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.1118, allocations: 12.03 kB / 354.7 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.306e-05/0.1119, allocations: 76.22 kB / 354.8 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.1121, allocations: 247.9 kB / 355 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.011e-05/0.1122, allocations: 154.9 kB / 355.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.78e-05/0.1122, allocations: 154.7 kB / 355.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.842e-05/0.1123, allocations: 104.9 kB / 355.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.1123, allocations: 75.28 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.035e-05/0.1124, allocations: 150.6 kB / 355.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.964e-05/0.1124, allocations: 154.6 kB / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.185e-05/0.1125, allocations: 154.6 kB / 356 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002975/0.1128, allocations: 453.9 kB / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.426e-05/0.1129, allocations: 169.1 kB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.142e-05/0.113, allocations: 92.08 kB / 356.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.113, allocations: 75.28 kB / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001785/0.1132, allocations: 47.41 kB / 356.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.184e-06/0.1132, allocations: 0 / 356.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001367/0.1133, allocations: 37.55 kB / 356.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.1134, allocations: 55.53 kB / 356.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.587e-05/0.1135, allocations: 109.8 kB / 357 MB, free: 13.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.1135, allocations: 25.7 kB / 357 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.752e-05/0.1135, allocations: 80.14 kB / 357.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.1136, allocations: 0 / 357.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.1136, allocations: 17.72 kB / 357.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1137, allocations: 310.8 kB / 357.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.458e-06/0.1137, allocations: 0 / 357.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.174e-06/0.1137, allocations: 4 kB / 357.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.23e-05/0.1138, allocations: 12.84 kB / 357.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1138, allocations: 0 / 357.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.308e-05/0.1138, allocations: 41.58 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1139, allocations: 4 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1139, allocations: 0 / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1139, allocations: 3.938 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.007e-05/0.1139, allocations: 0 / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1139, allocations: 0 / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.013e-05/0.114, allocations: 8.094 kB / 357.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.114, allocations: 4 kB / 357.5 MB, free: 13.2 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.89e-05/0.114, allocations: 113.8 kB / 357.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.909e-06/0.1141, allocations: 0 / 357.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.777e-05/0.1141, allocations: 7.125 kB / 357.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1141, allocations: 0 / 357.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1141, allocations: 0 / 357.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1141, allocations: 0 / 357.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.1143, allocations: 161.6 kB / 357.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.1143, allocations: 0 / 357.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.168e-06/0.1143, allocations: 4 kB / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1143, allocations: 0 / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.1143, allocations: 0 / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1143, allocations: 0 / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1143, allocations: 0 / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.95e-05/0.1144, allocations: 65 kB / 357.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.265e-05/0.1144, allocations: 77.11 kB / 357.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.1145, allocations: 4.031 kB / 357.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.1145, allocations: 7.938 kB / 357.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.037e-05/0.1145, allocations: 0 / 357.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.1145, allocations: 4 kB / 357.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.94e-05/0.1146, allocations: 83.27 kB / 358 MB, free: 12.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1146, allocations: 0 / 358 MB, free: 12.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004299/0.115, allocations: 127.9 kB / 358.1 MB, free: 12.45 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.001014/0.116, allocations: 479.4 kB / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.605e-05/0.1161, allocations: 4 kB / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1161, allocations: 0 / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.044e-05/0.1161, allocations: 8 kB / 358.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001447/0.1163, allocations: 11.94 kB / 358.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002861/0.1166, allocations: 134 kB / 358.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.1168, allocations: 0.6692 MB / 359.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.631e-05/0.1168, allocations: 15.42 kB / 359.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1169, allocations: 7.938 kB / 359.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Templates: time 0.005945/0.1228, allocations: 3.079 MB / 362.5 MB, free: 8.066 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 -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