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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006865/0.006865, allocations: 101 kB / 15.73 MB, free: 6.059 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.001557/0.001557, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7134/0.7134, allocations: 89.46 MB / 380 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002224, allocations: 79.86 kB / 0.5139 GB, free: 7.176 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2904, allocations: 67.3 MB / 0.5796 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06712/0.3576, allocations: 66.95 MB / 0.645 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02981/0.3874, allocations: 26.68 MB / 0.6711 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009465/0.3884, allocations: 19.88 kB / 0.6711 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.3897, allocations: 0.4967 MB / 0.6716 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003669/0.3934, allocations: 1.208 MB / 0.6728 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004159/0.3976, allocations: 1.641 MB / 0.6744 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002449/0.4001, allocations: 1.798 MB / 0.6761 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005117/0.4006, allocations: 343 kB / 0.6764 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04758/0.4482, allocations: 20.47 MB / 0.6964 GB, free: 8.688 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.4496, allocations: 0.8211 MB / 0.6972 GB, free: 7.863 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000232/0.4498, allocations: 124 kB / 0.6974 GB, free: 7.742 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5317/0.9815, allocations: 127.7 MB / 0.8221 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004536/0.982, allocations: 324 kB / 0.8224 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006577/0.9827, allocations: 0.6445 MB / 0.823 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004297/0.987, allocations: 2.766 MB / 0.8257 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.987, allocations: 1.312 kB / 0.8257 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.613e-06/0.987, allocations: 0 / 0.8257 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.488e-05/0.987, allocations: 0 / 0.8257 GB, free: 5.207 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.00322/0.9903, allocations: 1.937 MB / 0.8276 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.9903, allocations: 13.45 kB / 0.8276 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.9904, allocations: 153.2 kB / 0.8278 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.9907, allocations: 140.1 kB / 0.8279 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006605/0.9913, allocations: 0.6403 MB / 0.8285 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.9915, allocations: 222.1 kB / 0.8287 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.9916, allocations: 107.9 kB / 0.8288 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.9935, allocations: 1.443 MB / 0.8303 GB, free: 480 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.9935, allocations: 8.562 kB / 0.8303 GB, free: 476 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.855e-05/0.9936, allocations: 36 kB / 0.8303 GB, free: 440 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.851e-05/0.9937, allocations: 44.06 kB / 0.8303 GB, free: 396 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002933/0.9966, allocations: 1.635 MB / 0.8319 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007418/1.004, allocations: 5.16 MB / 0.837 GB, free: 9.477 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002731/1.007, allocations: 1.28 MB / 0.8382 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001498/1.008, allocations: 0.801 MB / 0.839 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003391/1.012, allocations: 4.199 MB / 0.8431 GB, free: 2.266 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/1.012, allocations: 43.56 kB / 0.8432 GB, free: 2.215 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 3.156e-06/1.012, allocations: 0 / 0.8432 GB, free: 2.215 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.009455/1.021, allocations: 4.576 MB / 0.8476 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/1.021, allocations: 90.11 kB / 0.8477 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007344/1.022, allocations: 0.6254 MB / 0.8483 GB, free: 12.83 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.792e-05/1.022, allocations: 53.7 kB / 0.8484 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002935/1.022, allocations: 381.9 kB / 0.8487 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003717/1.023, allocations: 494.3 kB / 0.8492 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003729/1.023, allocations: 222.9 kB / 0.8494 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001528/1.023, allocations: 349.9 kB / 0.8498 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/1.025, allocations: 0.5608 MB / 0.8503 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/1.026, allocations: 0.7016 MB / 0.851 GB, free: 10.06 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.002876/1.029, allocations: 1.427 MB / 0.8524 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/1.029, allocations: 7.094 kB / 0.8524 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003872/1.033, allocations: 1.844 MB / 0.8542 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/1.033, allocations: 10.66 kB / 0.8542 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.739e-05/1.033, allocations: 8 kB / 0.8542 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002458/1.035, allocations: 0.6049 MB / 0.8548 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009066/1.036, allocations: 205.8 kB / 0.855 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002927/1.039, allocations: 2.784 MB / 0.8577 GB, free: 3.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007942/1.04, allocations: 59.91 kB / 0.8578 GB, free: 2.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/1.04, allocations: 59.95 kB / 0.8578 GB, free: 2.887 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.0004663/1.041, allocations: 268.7 kB / 0.8581 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/1.041, allocations: 111.3 kB / 0.8582 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004511/1.045, allocations: 2.296 MB / 0.8604 GB, free: 220 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/1.045, allocations: 15.94 kB / 0.8604 GB, free: 204 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/1.045, allocations: 8 kB / 0.8605 GB, free: 196 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/1.045, allocations: 7.984 kB / 0.8605 GB, free: 188 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00519/1.051, allocations: 2.919 MB / 0.8633 GB, free: 13.25 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.858e-05/1.051, allocations: 11.98 kB / 0.8633 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/1.052, allocations: 202.4 kB / 0.8635 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000773/1.053, allocations: 296.5 kB / 0.8638 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/1.053, allocations: 47.95 kB / 0.8638 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005031/1.058, allocations: 4.607 MB / 0.8683 GB, free: 7.855 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/1.058, allocations: 7.5 kB / 0.8683 GB, free: 7.852 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005024/1.063, allocations: 2.55 MB / 0.8708 GB, free: 5.293 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005103/1.063, allocations: 300.2 kB / 0.8711 GB, free: 4.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/1.063, allocations: 27.95 kB / 0.8712 GB, free: 4.953 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007211/1.064, allocations: 47.95 kB / 0.8712 GB, free: 4.906 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/1.064, allocations: 92.14 kB / 0.8713 GB, free: 4.82 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/1.065, allocations: 55.78 kB / 0.8713 GB, free: 4.77 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006159/1.065, allocations: 0.4951 MB / 0.8718 GB, free: 4.277 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.21e-07/1.065, allocations: 0 / 0.8718 GB, free: 4.277 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00163/1.067, allocations: 0.6776 MB / 0.8725 GB, free: 3.598 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.00667/1.073, allocations: 3.826 MB / 0.8762 GB, free: 15.81 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003659/1.077, allocations: 1.767 MB / 0.8779 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.077, allocations: 192 / 0.8779 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002288/1.079, allocations: 1.29 MB / 0.8792 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001963/1.081, allocations: 412.1 kB / 0.8796 GB, free: 12.32 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10357:11-10357: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10357:11-10357: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.01945/1.101, allocations: 11 MB / 0.8903 GB, free: 1.23 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006933/1.102, allocations: 1.081 MB / 0.8914 GB, free: 120 kB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0008787/1.103, allocations: 248.3 kB / 0.8916 GB, free: 15.87 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006262/1.103, allocations: 428.6 kB / 0.892 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of SimCode: time 5.91e-07/1.103, allocations: 0 / 0.892 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08324/1.186, allocations: 40.36 MB / 0.9315 GB, free: 7.52 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/15.3, allocations: 4 kB / 0.9315 GB, free: 7.516 MB / 0.6856 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Processes.Tests.Pump_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Processes_Tests_Pump_fmu --startTime=0 --stopTime=30 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Pump.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches