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.001676/0.001676, allocations: 99.64 kB / 18.94 MB, free: 2.539 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.002296/0.002296, allocations: 215.1 kB / 22.25 MB, free: 4.875 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.378/1.378, allocations: 230.6 MB / 256 MB, free: 7.797 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.7407/0.7407, allocations: 100.9 MB / 413.3 MB, free: 2.848 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.002691/0.002691, allocations: 88.02 kB / 0.5641 GB, free: 35.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1275, allocations: 74.62 MB / 0.6369 GB, free: 6.457 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07594/0.2034, allocations: 60.82 MB / 0.6963 GB, free: 9.422 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02986/0.2333, allocations: 24.39 MB / 0.7202 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.2344, allocations: 59.44 kB / 0.7202 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001297/0.2357, allocations: 456.7 kB / 0.7207 GB, free: 464 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003457/0.2392, allocations: 1.278 MB / 0.7219 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00422/0.2434, allocations: 1.634 MB / 0.7235 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002629/0.246, allocations: 1.95 MB / 0.7254 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005242/0.2465, allocations: 211.9 kB / 0.7256 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04641/0.2929, allocations: 20.44 MB / 0.7456 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001493/0.2944, allocations: 0.8013 MB / 0.7463 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002534/0.2947, allocations: 120 kB / 0.7465 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.599/0.8937, allocations: 126.2 MB / 0.8697 GB, free: 1.727 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006559/0.8943, allocations: 339.1 kB / 0.87 GB, free: 1.465 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.8954, allocations: 0.571 MB / 0.8706 GB, free: 1.062 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006467/0.9018, allocations: 2.768 MB / 0.8733 GB, free: 14.66 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.9018, allocations: 0 / 0.8733 GB, free: 14.66 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.054e-06/0.9018, allocations: 0 / 0.8733 GB, free: 14.66 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 3.875e-05/0.9019, allocations: 8 kB / 0.8733 GB, free: 14.65 MB / 0.6387 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.004714/0.9066, allocations: 2.001 MB / 0.8752 GB, free: 12.65 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.9066, allocations: 9.469 kB / 0.8752 GB, free: 12.64 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002058/0.9069, allocations: 156.3 kB / 0.8754 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.9174, allocations: 1.802 MB / 0.8772 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.9197, allocations: 0.957 MB / 0.8781 GB, free: 9.75 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003227/0.92, allocations: 347 kB / 0.8784 GB, free: 9.348 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000367/0.9204, allocations: 106.6 kB / 0.8785 GB, free: 9.246 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003887/0.9243, allocations: 2.295 MB / 0.8808 GB, free: 6.883 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.9243, allocations: 3.281 kB / 0.8808 GB, free: 6.883 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001388/0.9244, allocations: 40 kB / 0.8808 GB, free: 6.844 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-05/0.9245, allocations: 45.98 kB / 0.8808 GB, free: 6.797 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004343/0.9288, allocations: 2.349 MB / 0.8831 GB, free: 4.461 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01245/0.9413, allocations: 6.151 MB / 0.8891 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003337/0.9446, allocations: 1.371 MB / 0.8905 GB, free: 12.96 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001935/0.9466, allocations: 0.8913 MB / 0.8914 GB, free: 12.07 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008794/0.9474, allocations: 228.1 kB / 0.8916 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/0.9475, allocations: 51.52 kB / 0.8916 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=131): time 4.529e-06/0.9475, allocations: 4.609 kB / 0.8916 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of matching and sorting (n=134): time 0.0131/0.9606, allocations: 5.134 MB / 0.8966 GB, free: 6.648 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/0.9607, allocations: 97.48 kB / 0.8967 GB, free: 6.539 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.9617, allocations: 0.7667 MB / 0.8975 GB, free: 5.75 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001942/0.9619, allocations: 49.7 kB / 0.8975 GB, free: 5.695 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003687/0.9622, allocations: 446 kB / 0.898 GB, free: 5.254 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004646/0.9627, allocations: 482 kB / 0.8984 GB, free: 4.789 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005426/0.9632, allocations: 330.7 kB / 0.8987 GB, free: 4.461 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000171/0.9634, allocations: 352 kB / 0.8991 GB, free: 4.113 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/0.965, allocations: 0.7287 MB / 0.8998 GB, free: 3.387 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.9668, allocations: 0.8601 MB / 0.9006 GB, free: 2.496 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.00384/0.9707, allocations: 1.696 MB / 0.9023 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.9707, allocations: 0 / 0.9023 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005546/0.9762, allocations: 2.335 MB / 0.9046 GB, free: 14.46 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.9762, allocations: 8 kB / 0.9046 GB, free: 14.45 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02948/1.006, allocations: 3.31 MB / 0.9078 GB, free: 11.17 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02422/1.03, allocations: 1.657 MB / 0.9094 GB, free: 9.512 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/1.032, allocations: 293.1 kB / 0.9097 GB, free: 9.238 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004125/1.036, allocations: 2.989 MB / 0.9126 GB, free: 6.121 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/1.038, allocations: 70.75 kB / 0.9127 GB, free: 6.055 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000273/1.038, allocations: 111.8 kB / 0.9128 GB, free: 5.945 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.0007/1.039, allocations: 280.4 kB / 0.913 GB, free: 5.672 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004346/1.039, allocations: 127.2 kB / 0.9132 GB, free: 5.547 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005781/1.045, allocations: 2.741 MB / 0.9158 GB, free: 2.824 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/1.045, allocations: 13.53 kB / 0.9159 GB, free: 2.812 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/1.045, allocations: 7.938 kB / 0.9159 GB, free: 2.805 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/1.045, allocations: 7.969 kB / 0.9159 GB, free: 2.797 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006326/1.051, allocations: 2.905 MB / 0.9187 GB, free: 15.89 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003475/1.055, allocations: 1.597 MB / 0.9203 GB, free: 14.29 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/1.056, allocations: 245.7 kB / 0.9205 GB, free: 14.06 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007692/1.057, allocations: 282.7 kB / 0.9208 GB, free: 13.78 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/1.057, allocations: 51 kB / 0.9208 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005347/1.062, allocations: 4.363 MB / 0.9251 GB, free: 9.172 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.062, allocations: 4.031 kB / 0.9251 GB, free: 9.168 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005804/1.068, allocations: 2.718 MB / 0.9277 GB, free: 6.445 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007772/1.069, allocations: 243 kB / 0.928 GB, free: 6.207 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/1.069, allocations: 35.84 kB / 0.928 GB, free: 6.172 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/1.071, allocations: 55.95 kB / 0.9281 GB, free: 6.117 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002556/1.071, allocations: 107.8 kB / 0.9282 GB, free: 6.016 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/1.071, allocations: 55.92 kB / 0.9282 GB, free: 5.961 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0008789/1.072, allocations: 0.6203 MB / 0.9288 GB, free: 5.332 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/1.072, allocations: 0 / 0.9288 GB, free: 5.332 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001721/1.074, allocations: 0.4994 MB / 0.9293 GB, free: 4.832 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.006577/1.08, allocations: 3.692 MB / 0.9329 GB, free: 1.191 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004289/1.084, allocations: 1.818 MB / 0.9347 GB, free: 15.38 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/1.084, allocations: 8.188 kB / 0.9347 GB, free: 15.38 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002418/1.087, allocations: 1.156 MB / 0.9358 GB, free: 14.21 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/1.089, allocations: 444.5 kB / 0.9363 GB, free: 13.8 MB / 0.7012 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10546:11-10546: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:10546:11-10546: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.06556/1.154, allocations: 14.74 MB / 0.9507 GB, free: 15 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006188/1.155, allocations: 0.5514 MB / 0.9512 GB, free: 14.41 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001574/1.157, allocations: 353.2 kB / 0.9515 GB, free: 14.07 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009861/1.158, allocations: 0.5421 MB / 0.9521 GB, free: 13.52 MB / 0.7169 GB Notification: Performance of SimCode: time 9.52e-07/1.158, allocations: 0 / 0.9521 GB, free: 13.52 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1074/1.265, allocations: 55.94 MB / 1.007 GB, free: 6.293 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.53/16.79, allocations: 10.81 kB / 1.007 GB, free: 6.285 MB / 0.7637 GB " [Timeout remaining time 643] (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: 20.362149690277874]