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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 216.6 kB / 23.03 MB, free: 4.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 256.8 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7729/0.7729, allocations: 100.3 MB / 413.6 MB, free: 3.391 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002495/0.002495, allocations: 88.38 kB / 0.564 GB, free: 35.93 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1514, allocations: 74.46 MB / 0.6367 GB, free: 7.395 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07554/0.227, allocations: 60.76 MB / 0.6961 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03062/0.2576, allocations: 24.35 MB / 0.7198 GB, free: 1.992 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001568/0.2592, allocations: 59.44 kB / 0.7199 GB, free: 1.934 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.2606, allocations: 464.6 kB / 0.7203 GB, free: 1.477 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004179/0.2648, allocations: 1.278 MB / 0.7216 GB, free: 196 kB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00475/0.2696, allocations: 1.625 MB / 0.7232 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002891/0.2725, allocations: 1.958 MB / 0.7251 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004691/0.2729, allocations: 215.9 kB / 0.7253 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05078/0.3237, allocations: 20.45 MB / 0.7453 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0017/0.3254, allocations: 0.8676 MB / 0.7461 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003188/0.3257, allocations: 120 kB / 0.7462 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.6348/0.9605, allocations: 126.2 MB / 0.8695 GB, free: 3.098 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0007847/0.9613, allocations: 330.2 kB / 0.8698 GB, free: 2.844 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001421/0.9627, allocations: 0.5724 MB / 0.8703 GB, free: 2.441 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.007102/0.9698, allocations: 2.777 MB / 0.8731 GB, free: 28 kB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.9698, allocations: 6.062 kB / 0.8731 GB, free: 24 kB / 0.6231 GB Notification: Performance of FrontEnd: time 1.433e-06/0.9698, allocations: 0 / 0.8731 GB, free: 24 kB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.183e-05/0.9698, allocations: 0 / 0.8731 GB, free: 24 kB / 0.6231 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.004803/0.9747, allocations: 1.991 MB / 0.875 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.9747, allocations: 12.03 kB / 0.875 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.867e-05/0.9747, allocations: 26.19 kB / 0.875 GB, free: 14 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001996/0.9749, allocations: 156.1 kB / 0.8752 GB, free: 13.84 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.9867, allocations: 1.805 MB / 0.877 GB, free: 12.03 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002258/0.989, allocations: 0.9518 MB / 0.8779 GB, free: 11.1 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003433/0.9893, allocations: 351 kB / 0.8782 GB, free: 10.7 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002956/0.9896, allocations: 99.95 kB / 0.8783 GB, free: 10.6 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004131/0.9937, allocations: 2.303 MB / 0.8806 GB, free: 8.23 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.168e-05/0.9938, allocations: 4 kB / 0.8806 GB, free: 8.227 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001529/0.9939, allocations: 41.09 kB / 0.8806 GB, free: 8.188 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.4e-05/0.994, allocations: 49.36 kB / 0.8807 GB, free: 8.145 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004735/0.9987, allocations: 2.357 MB / 0.883 GB, free: 5.793 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01363/1.012, allocations: 6.147 MB / 0.889 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003457/1.016, allocations: 1.369 MB / 0.8903 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002002/1.018, allocations: 0.8996 MB / 0.8912 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009251/1.019, allocations: 235 kB / 0.8914 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.859e-05/1.019, allocations: 51.56 kB / 0.8915 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=131): time 5.259e-06/1.019, allocations: 3.969 kB / 0.8915 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of matching and sorting (n=134): time 0.01308/1.032, allocations: 5.128 MB / 0.8965 GB, free: 7.992 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.813e-05/1.032, allocations: 97.67 kB / 0.8966 GB, free: 7.883 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/1.033, allocations: 0.7618 MB / 0.8973 GB, free: 7.098 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001913/1.033, allocations: 49.7 kB / 0.8973 GB, free: 7.043 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004005/1.034, allocations: 456.8 kB / 0.8978 GB, free: 6.594 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005207/1.034, allocations: 480 kB / 0.8982 GB, free: 6.129 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006202/1.035, allocations: 330.6 kB / 0.8986 GB, free: 5.801 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001921/1.035, allocations: 357.9 kB / 0.8989 GB, free: 5.445 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00164/1.037, allocations: 0.7209 MB / 0.8996 GB, free: 4.727 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001861/1.038, allocations: 0.8585 MB / 0.9004 GB, free: 3.836 MB / 0.6544 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.003941/1.042, allocations: 1.684 MB / 0.9021 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-06/1.042, allocations: 0 / 0.9021 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005705/1.048, allocations: 2.338 MB / 0.9044 GB, free: 15.8 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/1.048, allocations: 4 kB / 0.9044 GB, free: 15.8 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03527/1.083, allocations: 3.323 MB / 0.9076 GB, free: 12.51 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02982/1.113, allocations: 1.657 MB / 0.9092 GB, free: 10.85 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/1.115, allocations: 292.6 kB / 0.9095 GB, free: 10.58 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004226/1.119, allocations: 2.988 MB / 0.9124 GB, free: 7.465 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/1.121, allocations: 71.84 kB / 0.9125 GB, free: 7.395 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000268/1.121, allocations: 111.8 kB / 0.9126 GB, free: 7.285 MB / 0.67 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 (107): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,36)} Notification: Performance of prepare postOptimizeDAE: time 0.0007106/1.122, allocations: 277.8 kB / 0.9129 GB, free: 7.02 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004319/1.123, allocations: 134 kB / 0.913 GB, free: 6.891 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005898/1.128, allocations: 2.731 MB / 0.9157 GB, free: 4.172 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/1.128, allocations: 16 kB / 0.9157 GB, free: 4.156 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/1.128, allocations: 4 kB / 0.9157 GB, free: 4.152 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/1.128, allocations: 7.969 kB / 0.9157 GB, free: 4.145 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006306/1.135, allocations: 2.908 MB / 0.9185 GB, free: 1.227 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003542/1.138, allocations: 1.602 MB / 0.9201 GB, free: 15.63 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/1.14, allocations: 243.7 kB / 0.9203 GB, free: 15.41 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008361/1.141, allocations: 290.7 kB / 0.9206 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001337/1.141, allocations: 47.94 kB / 0.9207 GB, free: 15.07 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005343/1.146, allocations: 4.356 MB / 0.9249 GB, free: 10.52 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.146, allocations: 0 / 0.9249 GB, free: 10.52 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006077/1.152, allocations: 2.718 MB / 0.9276 GB, free: 7.789 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006887/1.153, allocations: 246.9 kB / 0.9278 GB, free: 7.547 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/1.153, allocations: 35.89 kB / 0.9278 GB, free: 7.512 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/1.155, allocations: 59.95 kB / 0.9279 GB, free: 7.453 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002779/1.155, allocations: 100.7 kB / 0.928 GB, free: 7.355 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/1.155, allocations: 58.16 kB / 0.928 GB, free: 7.301 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0008905/1.156, allocations: 0.6203 MB / 0.9286 GB, free: 6.672 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1e-07/1.156, allocations: 0 / 0.9286 GB, free: 6.672 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001794/1.158, allocations: 499.5 kB / 0.9291 GB, free: 6.184 MB / 0.6856 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 (103): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.007166/1.165, allocations: 3.707 MB / 0.9327 GB, free: 2.531 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004735/1.17, allocations: 1.815 MB / 0.9345 GB, free: 0.7227 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.17, allocations: 3.562 kB / 0.9345 GB, free: 0.7227 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002505/1.172, allocations: 1.167 MB / 0.9357 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/1.174, allocations: 430.7 kB / 0.9361 GB, free: 15.17 MB / 0.7012 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10524:11-10524: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:10524:11-10524: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.07734/1.252, allocations: 14.74 MB / 0.9505 GB, free: 364 kB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006452/1.252, allocations: 0.549 MB / 0.951 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001486/1.254, allocations: 362.3 kB / 0.9513 GB, free: 15.42 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/1.255, allocations: 0.5421 MB / 0.9519 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of SimCode: time 1.192e-06/1.255, allocations: 0 / 0.9519 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1473/1.402, allocations: 55.56 MB / 1.006 GB, free: 7.969 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.48/24.88, allocations: 8.062 kB / 1.006 GB, free: 7.961 MB / 0.7637 GB " [Timeout remaining time 635] (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 --stepSize=0.03 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1260.0] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.684146066079848]