Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_dev_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.005145/0.005145, 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.001319/0.001319, allocations: 197.6 kB / 16.68 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7398/0.7398, allocations: 93.69 MB / 384.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00244/0.00244, allocations: 75.88 kB / 0.5199 GB, free: 1.109 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2932, allocations: 68.26 MB / 0.5866 GB, free: 10.26 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07167/0.3649, allocations: 67.12 MB / 0.6522 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03067/0.3956, allocations: 26.76 MB / 0.6783 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.3967, allocations: 47.62 kB / 0.6783 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.398, allocations: 0.5121 MB / 0.6788 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003457/0.4015, allocations: 1.274 MB / 0.6801 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004194/0.4058, allocations: 1.636 MB / 0.6817 GB, free: 8.578 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002614/0.4084, allocations: 1.942 MB / 0.6836 GB, free: 6.629 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005784/0.409, allocations: 351.4 kB / 0.6839 GB, free: 6.273 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05061/0.4596, allocations: 20.54 MB / 0.704 GB, free: 1.543 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.461, allocations: 0.8481 MB / 0.7048 GB, free: 0.6914 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002763/0.4613, allocations: 120 kB / 0.7049 GB, free: 0.5742 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.567/1.028, allocations: 127.7 MB / 0.8296 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006137/1.029, allocations: 330.9 kB / 0.83 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009229/1.03, allocations: 0.6861 MB / 0.8306 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005464/1.035, allocations: 2.896 MB / 0.8335 GB, free: 7.863 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/1.035, allocations: 4 kB / 0.8335 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.412e-06/1.035, allocations: 1.312 kB / 0.8335 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.367e-05/1.035, allocations: 0 / 0.8335 GB, free: 7.859 MB / 0.5919 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.004322/1.04, allocations: 2.074 MB / 0.8355 GB, free: 5.77 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/1.04, allocations: 8.031 kB / 0.8355 GB, free: 5.762 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001951/1.04, allocations: 156.3 kB / 0.8356 GB, free: 5.602 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/1.04, allocations: 155.2 kB / 0.8358 GB, free: 5.453 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/1.042, allocations: 0.8896 MB / 0.8367 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/1.042, allocations: 217.6 kB / 0.8369 GB, free: 4.332 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/1.042, allocations: 104 kB / 0.837 GB, free: 4.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002623/1.045, allocations: 1.447 MB / 0.8384 GB, free: 2.742 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/1.045, allocations: 0 / 0.8384 GB, free: 2.742 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/1.045, allocations: 36 kB / 0.8384 GB, free: 2.707 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.244e-05/1.045, allocations: 46 kB / 0.8385 GB, free: 2.664 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003256/1.048, allocations: 1.635 MB / 0.84 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008021/1.056, allocations: 5.203 MB / 0.8451 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002827/1.059, allocations: 1.275 MB / 0.8464 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/1.061, allocations: 0.7907 MB / 0.8471 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003497/1.064, allocations: 4.202 MB / 0.8513 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/1.064, allocations: 47.56 kB / 0.8513 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 4.088e-06/1.064, allocations: 4.219 kB / 0.8513 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.009978/1.074, allocations: 4.641 MB / 0.8558 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/1.074, allocations: 90.11 kB / 0.8559 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009366/1.075, allocations: 0.7579 MB / 0.8567 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001023/1.075, allocations: 49.7 kB / 0.8567 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003662/1.076, allocations: 449.9 kB / 0.8571 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003918/1.076, allocations: 485.2 kB / 0.8576 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003817/1.077, allocations: 230.8 kB / 0.8578 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001638/1.077, allocations: 345.9 kB / 0.8581 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/1.078, allocations: 0.5643 MB / 0.8587 GB, free: 12.74 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/1.079, allocations: 0.7054 MB / 0.8594 GB, free: 12.01 MB / 0.6231 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.002946/1.082, allocations: 1.417 MB / 0.8608 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/1.082, allocations: 4 kB / 0.8608 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004005/1.086, allocations: 1.861 MB / 0.8626 GB, free: 8.703 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/1.086, allocations: 12.19 kB / 0.8626 GB, free: 8.691 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.871e-05/1.086, allocations: 8 kB / 0.8626 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/1.089, allocations: 0.615 MB / 0.8632 GB, free: 8.07 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000961/1.09, allocations: 200.9 kB / 0.8634 GB, free: 7.883 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003095/1.093, allocations: 2.798 MB / 0.8661 GB, free: 4.938 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008699/1.094, allocations: 51.95 kB / 0.8662 GB, free: 4.887 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/1.094, allocations: 59.95 kB / 0.8662 GB, free: 4.828 MB / 0.6231 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.0005287/1.095, allocations: 283 kB / 0.8665 GB, free: 4.555 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/1.095, allocations: 131.2 kB / 0.8666 GB, free: 4.426 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004809/1.1, allocations: 2.315 MB / 0.8689 GB, free: 2.109 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/1.1, allocations: 12 kB / 0.8689 GB, free: 2.098 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/1.1, allocations: 4 kB / 0.8689 GB, free: 2.094 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/1.1, allocations: 7.969 kB / 0.8689 GB, free: 2.086 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005475/1.105, allocations: 2.963 MB / 0.8718 GB, free: 15.11 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.762e-05/1.105, allocations: 13.38 kB / 0.8718 GB, free: 15.1 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/1.106, allocations: 203.1 kB / 0.872 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007869/1.107, allocations: 288.7 kB / 0.8723 GB, free: 14.62 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/1.107, allocations: 47.95 kB / 0.8723 GB, free: 14.57 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005349/1.113, allocations: 4.62 MB / 0.8769 GB, free: 9.703 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.113, allocations: 4.031 kB / 0.8769 GB, free: 9.699 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005368/1.118, allocations: 2.557 MB / 0.8794 GB, free: 7.133 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005585/1.119, allocations: 320 kB / 0.8797 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/1.119, allocations: 27.95 kB / 0.8797 GB, free: 6.773 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007357/1.12, allocations: 43.95 kB / 0.8797 GB, free: 6.73 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/1.12, allocations: 100.8 kB / 0.8798 GB, free: 6.633 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/1.12, allocations: 47.95 kB / 0.8799 GB, free: 6.586 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008093/1.121, allocations: 0.587 MB / 0.8804 GB, free: 5.992 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.91e-07/1.121, allocations: 0 / 0.8804 GB, free: 5.992 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001682/1.123, allocations: 0.6776 MB / 0.8811 GB, free: 5.312 MB / 0.6387 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.0071/1.13, allocations: 3.85 MB / 0.8849 GB, free: 1.508 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004106/1.134, allocations: 1.775 MB / 0.8866 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/1.134, allocations: 0 / 0.8866 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00251/1.136, allocations: 1.287 MB / 0.8879 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002098/1.138, allocations: 423.6 kB / 0.8883 GB, free: 14 MB / 0.6544 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.02011/1.159, allocations: 11.59 MB / 0.8996 GB, free: 2.309 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007517/1.159, allocations: 1.13 MB / 0.9007 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0009016/1.16, allocations: 268.9 kB / 0.9009 GB, free: 0.8828 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007447/1.161, allocations: 483.2 kB / 0.9014 GB, free: 424 kB / 0.6544 GB Notification: Performance of SimCode: time 7.32e-07/1.161, allocations: 0 / 0.9014 GB, free: 424 kB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08568/1.247, allocations: 42.15 MB / 0.9426 GB, free: 6.691 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/16.56, allocations: 6.5 kB / 0.9426 GB, free: 6.688 MB / 0.7012 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump_fmu --startTime=0 --stopTime=30 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches