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.0008582/0.0008582, allocations: 92.2 kB / 17.31 MB, free: 6.535 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.0008821/0.0008822, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.36/1.36, allocations: 223.3 MB / 242.2 MB, free: 264 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002622/0.0002624, allocations: 11.94 kB / 302.1 MB, free: 6.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09195/0.09224, allocations: 50.41 MB / 352.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001282/0.09356, allocations: 0.9195 MB / 353.4 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002943/0.09653, allocations: 1.963 MB / 355.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.773e-05/0.09657, allocations: 0 / 355.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.0966, allocations: 0 / 355.4 MB, free: 0.8398 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.001106/0.09771, allocations: 342.4 kB / 355.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.487e-05/0.09775, allocations: 4 kB / 355.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.378e-05/0.0978, allocations: 7.938 kB / 355.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.76e-05/0.09784, allocations: 4 kB / 355.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.078e-05/0.09787, allocations: 3.938 kB / 355.7 MB, free: 500 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.098, allocations: 11.98 kB / 355.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.815e-06/0.09801, allocations: 0 / 355.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007311/0.09875, allocations: 427.5 kB / 356.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.217e-05/0.09878, allocations: 0 / 356.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.539e-05/0.09882, allocations: 33.64 kB / 356.2 MB, free: 20 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004388/0.09926, allocations: 223.6 kB / 356.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.09928, allocations: 11.94 kB / 356.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09929, allocations: 0 / 356.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.526e-06/0.09929, allocations: 0 / 356.4 MB, free: 15.79 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.0004557/0.09975, allocations: 395.4 kB / 356.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.0998, allocations: 8.031 kB / 356.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.117e-05/0.09987, allocations: 80.22 kB / 356.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.1, allocations: 243.9 kB / 357.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.122e-05/0.1001, allocations: 154.9 kB / 357.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.515e-05/0.1002, allocations: 158.7 kB / 357.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.132e-05/0.1002, allocations: 101 kB / 357.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.1002, allocations: 75.28 kB / 357.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.283e-05/0.1003, allocations: 150.6 kB / 357.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-05/0.1004, allocations: 150.6 kB / 357.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.297e-05/0.1004, allocations: 162.5 kB / 358 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003029/0.1007, allocations: 446 kB / 358.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.438e-05/0.1008, allocations: 173.2 kB / 358.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.738e-05/0.1009, allocations: 84.08 kB / 358.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.1009, allocations: 79.28 kB / 358.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001167/0.1011, allocations: 47.34 kB / 358.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 3.216e-06/0.1011, allocations: 0 / 358.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001475/0.1012, allocations: 33.7 kB / 358.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.1013, allocations: 55.39 kB / 358.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.1014, allocations: 97.86 kB / 359 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1014, allocations: 33.83 kB / 359.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.1015, allocations: 88.08 kB / 359.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.1015, allocations: 7.844 kB / 359.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.1015, allocations: 9.719 kB / 359.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1016, allocations: 314.8 kB / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.555e-06/0.1017, allocations: 0 / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-06/0.1017, allocations: 4 kB / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.41e-05/0.1017, allocations: 4.859 kB / 359.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1017, allocations: 4.062 kB / 359.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.5e-05/0.1018, allocations: 41.64 kB / 359.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.1018, allocations: 4 kB / 359.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1018, allocations: 0 / 359.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.407e-06/0.1018, allocations: 3.938 kB / 359.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.973e-05/0.1019, allocations: 3.984 kB / 359.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.1019, allocations: 7.938 kB / 359.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.714e-05/0.1019, allocations: 0 / 359.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-06/0.1019, allocations: 0 / 359.6 MB, free: 12.4 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 8.393e-05/0.102, allocations: 113.8 kB / 359.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.102, allocations: 4 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.102, allocations: 3.125 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.1021, allocations: 0 / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1021, allocations: 0 / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1021, allocations: 192 / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.1022, allocations: 157.6 kB / 359.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1022, allocations: 3.984 kB / 359.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.138e-06/0.1022, allocations: 0 / 359.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1022, allocations: 0 / 359.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-06/0.1022, allocations: 4 kB / 359.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1022, allocations: 0 / 359.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1023, allocations: 7.984 kB / 359.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.953e-05/0.1023, allocations: 61.08 kB / 359.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-05/0.1024, allocations: 81.05 kB / 360 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.1024, allocations: 7.984 kB / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.203e-05/0.1024, allocations: 0 / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.244e-05/0.1024, allocations: 0 / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-06/0.1024, allocations: 4.031 kB / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.263e-05/0.1025, allocations: 83.28 kB / 360.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1025, allocations: 0 / 360.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004328/0.1029, allocations: 127.9 kB / 360.2 MB, free: 11.65 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.000961/0.1039, allocations: 486.8 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.313e-05/0.104, allocations: 0 / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.104, allocations: 0 / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.601e-06/0.104, allocations: 4 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.1041, allocations: 11.92 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002555/0.1044, allocations: 146.3 kB / 360.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.1047, allocations: 0.677 MB / 361.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.306e-05/0.1048, allocations: 15.44 kB / 361.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1048, allocations: 0 / 361.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of Templates: time 0.005548/0.1103, allocations: 3.08 MB / 364.6 MB, free: 7.246 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