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.001833/0.001833, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002418/0.002418, allocations: 220.2 kB / 22.26 MB, free: 5.125 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.537/1.537, allocations: 230.6 MB / 256 MB, free: 7.961 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.8121/0.8121, allocations: 100.3 MB / 412.7 MB, free: 3.652 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="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"}) [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.002528/0.002528, allocations: 82.91 kB / 0.5633 GB, free: 35.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1433, allocations: 74.47 MB / 0.636 GB, free: 7.633 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.08025/0.2236, allocations: 68.1 MB / 0.7025 GB, free: 3.293 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03248/0.2561, allocations: 27.13 MB / 0.729 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.2571, allocations: 59.44 kB / 0.729 GB, free: 8.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.2586, allocations: 0.5121 MB / 0.7295 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003808/0.2624, allocations: 1.301 MB / 0.7308 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0045/0.2669, allocations: 1.659 MB / 0.7324 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002436/0.2694, allocations: 1.954 MB / 0.7343 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003758/0.2697, allocations: 223.8 kB / 0.7345 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3912/0.6609, allocations: 20.48 MB / 0.7545 GB, free: 19.4 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001752/0.6627, allocations: 0.8663 MB / 0.7554 GB, free: 19.4 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002028/0.6629, allocations: 120.1 kB / 0.7555 GB, free: 19.4 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.25/0.9129, allocations: 126.7 MB / 0.8792 GB, free: 15.85 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0009884/0.9139, allocations: 332.3 kB / 0.8796 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001732/0.9157, allocations: 0.6899 MB / 0.8802 GB, free: 15.12 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.007675/0.9233, allocations: 2.903 MB / 0.8831 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.9233, allocations: 3.984 kB / 0.8831 GB, free: 12.53 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.172e-06/0.9233, allocations: 4 kB / 0.8831 GB, free: 12.53 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.84e-05/0.9234, allocations: 0 / 0.8831 GB, free: 12.53 MB / 0.6544 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.00421/0.9276, allocations: 2.003 MB / 0.885 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.9276, allocations: 8.031 kB / 0.885 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001818/0.9278, allocations: 157.4 kB / 0.8852 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002605/0.928, allocations: 157.1 kB / 0.8853 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001485/0.9295, allocations: 0.7963 MB / 0.8861 GB, free: 9.43 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002579/0.9298, allocations: 350.9 kB / 0.8864 GB, free: 9.031 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003019/0.9301, allocations: 107.9 kB / 0.8865 GB, free: 8.926 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002503/0.9326, allocations: 1.456 MB / 0.888 GB, free: 7.43 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.9326, allocations: 4 kB / 0.888 GB, free: 7.426 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.837e-05/0.9327, allocations: 36 kB / 0.888 GB, free: 7.391 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.693e-05/0.9328, allocations: 45.98 kB / 0.888 GB, free: 7.348 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003205/0.936, allocations: 1.654 MB / 0.8897 GB, free: 5.703 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007785/0.9438, allocations: 5.15 MB / 0.8947 GB, free: 448 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002825/0.9466, allocations: 1.211 MB / 0.8959 GB, free: 15.22 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001541/0.9481, allocations: 0.7334 MB / 0.8966 GB, free: 14.48 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001639/0.9498, allocations: 409 kB / 0.897 GB, free: 14.11 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.9498, allocations: 43.91 kB / 0.897 GB, free: 14.05 MB / 0.67 GB Notification: Performance of pre-optimization done (n=131): time 2.866e-06/0.9498, allocations: 0 / 0.897 GB, free: 14.05 MB / 0.67 GB Notification: Performance of matching and sorting (n=134): time 0.009767/0.9596, allocations: 4.191 MB / 0.9011 GB, free: 9.895 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.9596, allocations: 94.05 kB / 0.9012 GB, free: 9.785 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000941/0.9606, allocations: 0.7696 MB / 0.902 GB, free: 8.992 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 8.248e-05/0.9607, allocations: 45.7 kB / 0.902 GB, free: 8.941 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003574/0.961, allocations: 449.9 kB / 0.9024 GB, free: 8.496 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004582/0.9615, allocations: 490.1 kB / 0.9029 GB, free: 8.027 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003606/0.9618, allocations: 226.9 kB / 0.9031 GB, free: 7.801 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0003113/0.9622, allocations: 349.9 kB / 0.9034 GB, free: 7.453 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.9634, allocations: 0.5726 MB / 0.904 GB, free: 6.883 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.9648, allocations: 0.7097 MB / 0.9047 GB, free: 6.148 MB / 0.67 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.003056/0.9679, allocations: 1.356 MB / 0.906 GB, free: 4.777 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.9679, allocations: 1.438 kB / 0.906 GB, free: 4.777 MB / 0.67 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003985/0.9719, allocations: 1.851 MB / 0.9078 GB, free: 2.938 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.9719, allocations: 8 kB / 0.9078 GB, free: 2.93 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.9719, allocations: 8 kB / 0.9079 GB, free: 2.922 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002416/0.9743, allocations: 0.6049 MB / 0.9084 GB, free: 2.312 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009274/0.9752, allocations: 206 kB / 0.9086 GB, free: 2.121 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003171/0.9784, allocations: 2.692 MB / 0.9113 GB, free: 15.31 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008487/0.9793, allocations: 55.91 kB / 0.9113 GB, free: 15.25 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.9794, allocations: 59.97 kB / 0.9114 GB, free: 15.2 MB / 0.6856 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.0004698/0.9798, allocations: 281.1 kB / 0.9116 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002296/0.9801, allocations: 123.2 kB / 0.9118 GB, free: 14.8 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004658/0.9847, allocations: 2.314 MB / 0.914 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.9847, allocations: 12 kB / 0.914 GB, free: 12.48 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.9848, allocations: 4 kB / 0.914 GB, free: 12.48 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.9848, allocations: 11.97 kB / 0.914 GB, free: 12.47 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005698/0.9905, allocations: 2.937 MB / 0.9169 GB, free: 9.523 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-05/0.9905, allocations: 8 kB / 0.9169 GB, free: 9.516 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009929/0.9915, allocations: 198.7 kB / 0.9171 GB, free: 9.328 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007684/0.9923, allocations: 301.2 kB / 0.9174 GB, free: 9.035 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002023/0.9925, allocations: 47.94 kB / 0.9174 GB, free: 8.988 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005593/0.998, allocations: 4.409 MB / 0.9218 GB, free: 4.383 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.998, allocations: 4.062 kB / 0.9218 GB, free: 4.379 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005249/1.003, allocations: 2.57 MB / 0.9243 GB, free: 1.801 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006682/1.004, allocations: 235 kB / 0.9245 GB, free: 1.57 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/1.004, allocations: 27.94 kB / 0.9245 GB, free: 1.543 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007345/1.005, allocations: 47.95 kB / 0.9246 GB, free: 1.496 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003144/1.005, allocations: 96.75 kB / 0.9247 GB, free: 1.398 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/1.005, allocations: 55.94 kB / 0.9247 GB, free: 1.344 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0009544/1.006, allocations: 0.5836 MB / 0.9253 GB, free: 0.7539 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/1.006, allocations: 0 / 0.9253 GB, free: 0.7539 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001925/1.008, allocations: 0.6815 MB / 0.9259 GB, free: 72 kB / 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 (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.007543/1.016, allocations: 3.835 MB / 0.9297 GB, free: 12.29 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.003698/1.019, allocations: 1.691 MB / 0.9313 GB, free: 10.58 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.019, allocations: 4.062 kB / 0.9313 GB, free: 10.58 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002437/1.022, allocations: 1.25 MB / 0.9326 GB, free: 9.293 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/1.024, allocations: 420.8 kB / 0.933 GB, free: 8.91 MB / 0.7012 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10487:11-10487: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:10487:11-10487: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.02057/1.044, allocations: 11.57 MB / 0.9443 GB, free: 13.26 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007785/1.045, allocations: 1.132 MB / 0.9454 GB, free: 12.1 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0009292/1.046, allocations: 257.4 kB / 0.9456 GB, free: 11.84 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007094/1.047, allocations: 491.2 kB / 0.9461 GB, free: 11.36 MB / 0.7169 GB Notification: Performance of SimCode: time 1.032e-06/1.047, allocations: 4 kB / 0.9461 GB, free: 11.36 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1056/1.152, allocations: 43.27 MB / 0.9883 GB, free: 0.5195 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.83/17.99, allocations: 3.938 kB / 0.9883 GB, free: 0.5156 MB / 0.7481 GB " [Timeout remaining time 642] (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: 21.853385017020628]