Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) 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(ThermofluidStream.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pump.m_flow|pump1.m_flow|pump1.omega|pump1.phi|pump2.m_flow|pump3.m_flow|pump3.omega|pump3.phi|pump4.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Pump") translateModel(ThermofluidStream.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pump.m_flow|pump1.m_flow|pump1.omega|pump1.phi|pump2.m_flow|pump3.m_flow|pump3.omega|pump3.phi|pump4.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Pump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6845/0.6845, allocations: 91.19 MB / 381.6 MB, free: 9.375 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 81.27 kB / 460.3 MB, free: 23.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.119, allocations: 67.69 MB / 0.5156 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06685/0.1859, allocations: 67.11 MB / 0.5811 GB, free: 6.82 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2466/0.4325, allocations: 26.7 MB / 0.6072 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001273/0.4338, allocations: 41.16 kB / 0.6073 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001318/0.4351, allocations: 0.5083 MB / 0.6078 GB, free: 5.934 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.4386, allocations: 1.256 MB / 0.609 GB, free: 5.922 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004169/0.4428, allocations: 1.643 MB / 0.6106 GB, free: 5.902 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00226/0.445, allocations: 1.877 MB / 0.6124 GB, free: 5.898 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004843/0.4455, allocations: 354.8 kB / 0.6128 GB, free: 5.82 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04442/0.4899, allocations: 20.52 MB / 0.6328 GB, free: 296 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001582/0.4916, allocations: 0.8463 MB / 0.6336 GB, free: 0 / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002146/0.4918, allocations: 121.2 kB / 0.6337 GB, free: 0 / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3089/0.8007, allocations: 127.7 MB / 0.7585 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006476/0.8014, allocations: 322.5 kB / 0.7588 GB, free: 9.078 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001303/0.8027, allocations: 0.6906 MB / 0.7595 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00646/0.8092, allocations: 2.831 MB / 0.7622 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.8092, allocations: 4 kB / 0.7622 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8092, allocations: 3.938 kB / 0.7622 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.224e-05/0.8093, allocations: 0 / 0.7622 GB, free: 5.699 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004869/0.8142, allocations: 2.007 MB / 0.7642 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.8142, allocations: 8.031 kB / 0.7642 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004217/0.8146, allocations: 147.6 kB / 0.7643 GB, free: 3.512 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001409/0.8161, allocations: 0.7911 MB / 0.7651 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.8163, allocations: 218.5 kB / 0.7653 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.8165, allocations: 100.8 kB / 0.7654 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002461/0.8189, allocations: 1.444 MB / 0.7668 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.819, allocations: 3.938 kB / 0.7668 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.8191, allocations: 48 kB / 0.7669 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.748e-05/0.8191, allocations: 41.98 kB / 0.7669 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002906/0.8221, allocations: 1.621 MB / 0.7685 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007122/0.8292, allocations: 5.234 MB / 0.7736 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002569/0.8318, allocations: 1.271 MB / 0.7749 GB, free: 8.457 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.8332, allocations: 0.7967 MB / 0.7756 GB, free: 7.656 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002934/0.8361, allocations: 4.195 MB / 0.7797 GB, free: 2.531 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.8362, allocations: 51.56 kB / 0.7798 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 3.046e-06/0.8362, allocations: 0 / 0.7798 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.009104/0.8453, allocations: 4.595 MB / 0.7843 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.8454, allocations: 94.05 kB / 0.7844 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008236/0.8462, allocations: 0.7448 MB / 0.7851 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.713e-05/0.8463, allocations: 49.7 kB / 0.7851 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.8466, allocations: 441.3 kB / 0.7856 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/0.8469, allocations: 458.6 kB / 0.786 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003531/0.8473, allocations: 230.8 kB / 0.7862 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.8474, allocations: 345.9 kB / 0.7865 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.8486, allocations: 0.5686 MB / 0.7871 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.8499, allocations: 0.6945 MB / 0.7878 GB, free: 10.05 MB / 0.6075 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.pump.omega = pump.omega_dot_0 (0.0 = pump.omega_dot_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.002666/0.8526, allocations: 1.436 MB / 0.7892 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.8526, allocations: 0 / 0.7892 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003771/0.8564, allocations: 1.849 MB / 0.791 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.8564, allocations: 11.94 kB / 0.791 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.943e-05/0.8564, allocations: 8 kB / 0.791 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/0.8589, allocations: 0.6125 MB / 0.7916 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009403/0.8598, allocations: 211.6 kB / 0.7918 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.8626, allocations: 2.782 MB / 0.7945 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008578/0.8635, allocations: 59.81 kB / 0.7946 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.8636, allocations: 56.09 kB / 0.7946 GB, free: 2.809 MB / 0.6075 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.pump.omega = pump.omega_dot_0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0005169/0.8642, allocations: 277.6 kB / 0.7949 GB, free: 2.527 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003053/0.8645, allocations: 118.6 kB / 0.795 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004399/0.8689, allocations: 2.308 MB / 0.7973 GB, free: 60 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.8689, allocations: 12 kB / 0.7973 GB, free: 48 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.8689, allocations: 4 kB / 0.7973 GB, free: 44 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.869, allocations: 7.969 kB / 0.7973 GB, free: 36 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005012/0.874, allocations: 2.975 MB / 0.8002 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.971e-05/0.874, allocations: 11.98 kB / 0.8002 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.8751, allocations: 203.8 kB / 0.8004 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007223/0.8758, allocations: 293.1 kB / 0.8007 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/0.8759, allocations: 47.89 kB / 0.8007 GB, free: 12.47 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004734/0.8807, allocations: 4.616 MB / 0.8052 GB, free: 7.586 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.8807, allocations: 0 / 0.8052 GB, free: 7.586 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004838/0.8855, allocations: 2.558 MB / 0.8077 GB, free: 5.004 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005102/0.8861, allocations: 307.5 kB / 0.808 GB, free: 4.684 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/0.8863, allocations: 27.91 kB / 0.808 GB, free: 4.656 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007876/0.8871, allocations: 52.77 kB / 0.8081 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.8873, allocations: 88.89 kB / 0.8082 GB, free: 4.516 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.933e-05/0.8874, allocations: 51.94 kB / 0.8082 GB, free: 4.465 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007259/0.8881, allocations: 0.5717 MB / 0.8088 GB, free: 3.883 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8881, allocations: 0 / 0.8088 GB, free: 3.883 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001641/0.8898, allocations: 0.6791 MB / 0.8095 GB, free: 3.203 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 9 (pump4.m_flow,pump.m_flow,pump1.m_flow,pump1.phi,pump1.omega,pump2.m_flow,pump3.m_flow,pump3.phi,pump3.omega) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (5,17,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001423/0.8912, allocations: 0.8125 MB / 0.8102 GB, free: 2.426 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004153/0.8954, allocations: 2.004 MB / 0.8122 GB, free: 384 kB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.8954, allocations: 0 / 0.8122 GB, free: 384 kB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002276/0.8977, allocations: 1.28 MB / 0.8135 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.8998, allocations: 429.5 kB / 0.8139 GB, free: 14.64 MB / 0.6387 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10354:11-10354:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(pump3.outputQuantity) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10354:11-10354:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(pump4.outputQuantity) Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006142/0.906, allocations: 2.855 MB / 0.8167 GB, free: 11.76 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008591/0.9069, allocations: 1.122 MB / 0.8177 GB, free: 10.61 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001114/0.908, allocations: 269.2 kB / 0.818 GB, free: 10.34 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.9084, allocations: 115.3 kB / 0.8181 GB, free: 10.23 MB / 0.6387 GB Notification: Performance of SimCode: time 7.11e-07/0.9084, allocations: 3.938 kB / 0.8181 GB, free: 10.22 MB / 0.6387 GB Notification: Performance of Templates: time 0.2528/1.161, allocations: 29.92 MB / 0.8473 GB, free: 253.4 MB / 0.6387 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.makefile (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.sim & ./ThermofluidStream_ThermofluidStream.Processes.Tests.Pump -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Pump_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Pump_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches