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.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.001384/0.001384, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001504/0.001504, allocations: 215.7 kB / 23.03 MB, free: 4.918 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.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.8006/0.8006, allocations: 94.62 MB / 407.8 MB, free: 8.871 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_ThermofluidStream_Processes_Tests_Pump",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_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.002521/0.002521, allocations: 76.75 kB / 0.5557 GB, free: 38.21 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1464, allocations: 73.06 MB / 0.627 GB, free: 64 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.08326/0.2296, allocations: 60.76 MB / 0.6864 GB, free: 3.094 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03262/0.2622, allocations: 24.34 MB / 0.7102 GB, free: 10.68 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.2635, allocations: 59.44 kB / 0.7102 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.265, allocations: 472.6 kB / 0.7107 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004199/0.2692, allocations: 1.274 MB / 0.7119 GB, free: 8.875 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005034/0.2743, allocations: 1.642 MB / 0.7135 GB, free: 7.23 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003392/0.2777, allocations: 1.954 MB / 0.7154 GB, free: 5.266 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005757/0.2782, allocations: 215.9 kB / 0.7156 GB, free: 5.047 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0559/0.3341, allocations: 20.45 MB / 0.7356 GB, free: 436 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.336, allocations: 0.8676 MB / 0.7364 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003693/0.3364, allocations: 120 kB / 0.7366 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.7227/1.059, allocations: 126.2 MB / 0.8598 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0008912/1.06, allocations: 334.8 kB / 0.8601 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001536/1.061, allocations: 0.5706 MB / 0.8607 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.008059/1.069, allocations: 2.784 MB / 0.8634 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 1.147e-05/1.07, allocations: 4 kB / 0.8634 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.414e-06/1.07, allocations: 0.9375 kB / 0.8634 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 6.289e-05/1.07, allocations: 0 / 0.8634 GB, free: 15.7 MB / 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.005804/1.075, allocations: 1.996 MB / 0.8654 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/1.075, allocations: 12.03 kB / 0.8654 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.179e-05/1.075, allocations: 26.19 kB / 0.8654 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002923/1.076, allocations: 152.3 kB / 0.8655 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01274/1.089, allocations: 1.803 MB / 0.8673 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002903/1.091, allocations: 0.9474 MB / 0.8682 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003555/1.092, allocations: 345 kB / 0.8685 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005064/1.092, allocations: 103.9 kB / 0.8686 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005139/1.097, allocations: 2.311 MB / 0.8709 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.487e-05/1.097, allocations: 0 / 0.8709 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002301/1.098, allocations: 42.81 kB / 0.8709 GB, free: 7.879 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-05/1.098, allocations: 45.98 kB / 0.871 GB, free: 7.832 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005508/1.103, allocations: 2.361 MB / 0.8733 GB, free: 5.48 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01748/1.121, allocations: 6.148 MB / 0.8793 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003895/1.125, allocations: 1.367 MB / 0.8806 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002337/1.127, allocations: 0.8979 MB / 0.8815 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001056/1.128, allocations: 242.5 kB / 0.8817 GB, free: 12.86 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/1.128, allocations: 47.56 kB / 0.8818 GB, free: 12.8 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=131): time 4.658e-06/1.128, allocations: 0 / 0.8818 GB, free: 12.8 MB / 0.6387 GB Notification: Performance of matching and sorting (n=134): time 0.01693/1.145, allocations: 5.131 MB / 0.8868 GB, free: 7.668 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.032e-05/1.145, allocations: 94.09 kB / 0.8869 GB, free: 7.559 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/1.146, allocations: 0.7691 MB / 0.8876 GB, free: 6.77 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0004884/1.147, allocations: 49.7 kB / 0.8877 GB, free: 6.715 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004786/1.147, allocations: 451.3 kB / 0.8881 GB, free: 6.27 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001048/1.148, allocations: 486.1 kB / 0.8886 GB, free: 5.801 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007687/1.149, allocations: 330.7 kB / 0.8889 GB, free: 5.473 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.000225/1.149, allocations: 341.9 kB / 0.8892 GB, free: 5.133 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/1.151, allocations: 0.7287 MB / 0.8899 GB, free: 4.406 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/1.153, allocations: 0.8638 MB / 0.8908 GB, free: 3.512 MB / 0.6387 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.004283/1.157, allocations: 1.687 MB / 0.8924 GB, free: 1.809 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/1.157, allocations: 0.875 kB / 0.8924 GB, free: 1.809 MB / 0.6387 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00633/1.164, allocations: 2.341 MB / 0.8947 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/1.164, allocations: 4 kB / 0.8947 GB, free: 15.47 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03531/1.199, allocations: 3.319 MB / 0.898 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02885/1.228, allocations: 1.653 MB / 0.8996 GB, free: 10.53 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001906/1.23, allocations: 286.1 kB / 0.8998 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004647/1.235, allocations: 2.998 MB / 0.9028 GB, free: 7.137 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/1.237, allocations: 71.89 kB / 0.9028 GB, free: 7.066 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004178/1.237, allocations: 109.2 kB / 0.9029 GB, free: 6.961 MB / 0.6544 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.0009269/1.238, allocations: 281.8 kB / 0.9032 GB, free: 6.691 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005796/1.239, allocations: 131.2 kB / 0.9033 GB, free: 6.562 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006848/1.245, allocations: 2.72 MB / 0.906 GB, free: 3.855 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.297e-05/1.245, allocations: 12 kB / 0.906 GB, free: 3.844 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/1.245, allocations: 8 kB / 0.906 GB, free: 3.836 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/1.245, allocations: 7.984 kB / 0.906 GB, free: 3.828 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007659/1.253, allocations: 2.905 MB / 0.9089 GB, free: 0.9141 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.004126/1.257, allocations: 1.608 MB / 0.9104 GB, free: 15.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/1.259, allocations: 237.8 kB / 0.9107 GB, free: 15.08 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009367/1.26, allocations: 291 kB / 0.9109 GB, free: 14.79 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003077/1.26, allocations: 47.92 kB / 0.911 GB, free: 14.75 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005742/1.266, allocations: 4.363 MB / 0.9152 GB, free: 10.2 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/1.266, allocations: 0 / 0.9152 GB, free: 10.2 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006837/1.273, allocations: 2.723 MB / 0.9179 GB, free: 7.465 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008932/1.274, allocations: 242.9 kB / 0.9181 GB, free: 7.227 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003652/1.274, allocations: 39.84 kB / 0.9182 GB, free: 7.188 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/1.276, allocations: 57.02 kB / 0.9182 GB, free: 7.133 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003807/1.276, allocations: 108.3 kB / 0.9183 GB, free: 7.031 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001754/1.276, allocations: 47.94 kB / 0.9184 GB, free: 6.984 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001006/1.277, allocations: 0.6242 MB / 0.919 GB, free: 6.352 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.1e-07/1.277, allocations: 0 / 0.919 GB, free: 6.352 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002622/1.28, allocations: 499.5 kB / 0.9195 GB, free: 5.863 MB / 0.67 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.008448/1.288, allocations: 3.71 MB / 0.9231 GB, free: 2.207 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.005006/1.293, allocations: 1.815 MB / 0.9248 GB, free: 404 kB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.293, allocations: 0 / 0.9248 GB, free: 404 kB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002839/1.296, allocations: 1.163 MB / 0.926 GB, free: 15.23 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002494/1.299, allocations: 433.6 kB / 0.9264 GB, free: 14.83 MB / 0.6856 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.07748/1.376, allocations: 14.74 MB / 0.9408 GB, free: 44 kB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007202/1.377, allocations: 0.5533 MB / 0.9413 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001688/1.379, allocations: 345.3 kB / 0.9417 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/1.38, allocations: 0.5499 MB / 0.9422 GB, free: 14.56 MB / 0.7012 GB Notification: Performance of SimCode: time 2.435e-06/1.38, allocations: 0 / 0.9422 GB, free: 14.56 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1141/1.494, allocations: 55.55 MB / 0.9964 GB, free: 7.652 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.31/24.81, allocations: 7.984 kB / 0.9965 GB, free: 7.645 MB / 0.7481 GB " [Timeout remaining time 635] (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 --stepSize=0.03 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1260.0] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.635273649008013]