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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 109.6 kB / 17.96 MB, free: 4.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001989/0.001989, allocations: 201.4 kB / 21.22 MB, free: 0.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 225.6 MB / 249.9 MB, free: 13.37 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7637/0.7637, allocations: 94.59 MB / 399.7 MB, free: 15.79 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-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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 88.09 kB / 0.5453 GB, free: 42.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1106, allocations: 71.85 MB / 0.6154 GB, free: 9.086 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07967/0.1903, allocations: 68 MB / 0.6818 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03148/0.2218, allocations: 27.12 MB / 0.7083 GB, free: 9.645 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.223, allocations: 43.75 kB / 0.7084 GB, free: 9.602 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.2245, allocations: 0.5082 MB / 0.7089 GB, free: 9.09 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.2282, allocations: 1.309 MB / 0.7101 GB, free: 7.773 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00441/0.2326, allocations: 1.637 MB / 0.7117 GB, free: 6.133 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002658/0.2353, allocations: 1.946 MB / 0.7136 GB, free: 4.176 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005076/0.2358, allocations: 215.5 kB / 0.7138 GB, free: 3.957 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05286/0.2887, allocations: 20.6 MB / 0.734 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001621/0.2903, allocations: 0.8676 MB / 0.7348 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004586/0.2907, allocations: 120 kB / 0.7349 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5801/0.8709, allocations: 128 MB / 0.8599 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006647/0.8715, allocations: 333.5 kB / 0.8602 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001008/0.8725, allocations: 0.6843 MB / 0.8609 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006696/0.8792, allocations: 2.904 MB / 0.8637 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.8792, allocations: 1.531 kB / 0.8638 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.994e-06/0.8792, allocations: 0 / 0.8638 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.446e-05/0.8793, allocations: 4 kB / 0.8638 GB, free: 10.2 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.00465/0.8839, allocations: 2.075 MB / 0.8658 GB, free: 8.105 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.884, allocations: 12.03 kB / 0.8658 GB, free: 8.094 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002117/0.8842, allocations: 152.3 kB / 0.8659 GB, free: 7.938 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003208/0.8845, allocations: 153.1 kB / 0.8661 GB, free: 7.789 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.886, allocations: 0.8813 MB / 0.8669 GB, free: 6.914 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.8862, allocations: 220.7 kB / 0.8672 GB, free: 6.672 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/0.8864, allocations: 112.6 kB / 0.8673 GB, free: 6.562 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002629/0.8891, allocations: 1.44 MB / 0.8687 GB, free: 5.082 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.098e-05/0.8891, allocations: 0 / 0.8687 GB, free: 5.082 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.8892, allocations: 47.75 kB / 0.8687 GB, free: 5.039 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-05/0.8893, allocations: 41.98 kB / 0.8688 GB, free: 5 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003187/0.8925, allocations: 1.631 MB / 0.8703 GB, free: 3.379 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008127/0.9006, allocations: 5.199 MB / 0.8754 GB, free: 14.05 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.9032, allocations: 1.206 MB / 0.8766 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/0.9046, allocations: 0.7329 MB / 0.8773 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003456/0.9081, allocations: 4.196 MB / 0.8814 GB, free: 6.984 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.097e-05/0.9081, allocations: 55.55 kB / 0.8815 GB, free: 6.922 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=131): time 3.666e-06/0.9081, allocations: 0 / 0.8815 GB, free: 6.922 MB / 0.6387 GB Notification: Performance of matching and sorting (n=134): time 0.009698/0.9178, allocations: 4.607 MB / 0.886 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.057e-05/0.9179, allocations: 90.11 kB / 0.8861 GB, free: 2.125 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009974/0.9189, allocations: 0.7695 MB / 0.8868 GB, free: 1.332 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.919, allocations: 50.47 kB / 0.8869 GB, free: 1.277 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003763/0.9194, allocations: 446 kB / 0.8873 GB, free: 0.8359 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004259/0.9198, allocations: 495.8 kB / 0.8878 GB, free: 368 kB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003583/0.9202, allocations: 214.9 kB / 0.888 GB, free: 148 kB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001826/0.9204, allocations: 354.7 kB / 0.8883 GB, free: 15.79 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.9216, allocations: 0.5608 MB / 0.8888 GB, free: 15.23 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.923, allocations: 0.7071 MB / 0.8895 GB, free: 14.5 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.00287/0.9258, allocations: 1.425 MB / 0.8909 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.9258, allocations: 4 kB / 0.8909 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003994/0.9298, allocations: 1.836 MB / 0.8927 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.9299, allocations: 11.98 kB / 0.8927 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.957e-05/0.9299, allocations: 8 kB / 0.8927 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002466/0.9324, allocations: 0.6076 MB / 0.8933 GB, free: 10.58 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.9334, allocations: 210.2 kB / 0.8935 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003125/0.9365, allocations: 2.782 MB / 0.8963 GB, free: 7.457 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009655/0.9375, allocations: 51.92 kB / 0.8963 GB, free: 7.406 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/0.9376, allocations: 59.95 kB / 0.8964 GB, free: 7.348 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 (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.0005557/0.9381, allocations: 289.3 kB / 0.8966 GB, free: 7.074 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003032/0.9385, allocations: 131.2 kB / 0.8968 GB, free: 6.945 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004732/0.9432, allocations: 2.295 MB / 0.899 GB, free: 4.656 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.9432, allocations: 13.53 kB / 0.899 GB, free: 4.645 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.9432, allocations: 8 kB / 0.899 GB, free: 4.637 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.9432, allocations: 3.984 kB / 0.899 GB, free: 4.633 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005493/0.9487, allocations: 2.966 MB / 0.9019 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.663e-05/0.9488, allocations: 11.98 kB / 0.9019 GB, free: 1.641 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.9498, allocations: 201.3 kB / 0.9021 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007594/0.9506, allocations: 291.1 kB / 0.9024 GB, free: 1.164 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/0.9507, allocations: 39.95 kB / 0.9024 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005555/0.9562, allocations: 4.625 MB / 0.907 GB, free: 12.25 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.9562, allocations: 0 / 0.907 GB, free: 12.25 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005722/0.962, allocations: 2.551 MB / 0.9094 GB, free: 9.695 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006745/0.9626, allocations: 312.1 kB / 0.9097 GB, free: 9.371 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.9628, allocations: 31.89 kB / 0.9098 GB, free: 9.34 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007832/0.9636, allocations: 49.48 kB / 0.9098 GB, free: 9.293 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/0.9638, allocations: 93.59 kB / 0.9099 GB, free: 9.199 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.9639, allocations: 55.94 kB / 0.91 GB, free: 9.145 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0008657/0.9648, allocations: 0.5802 MB / 0.9105 GB, free: 8.555 MB / 0.67 GB Notification: Performance of sort global known variables: time 9.1e-08/0.9648, allocations: 0 / 0.9105 GB, free: 8.555 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001879/0.9667, allocations: 0.6815 MB / 0.9112 GB, free: 7.871 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 (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.007206/0.9739, allocations: 3.829 MB / 0.9149 GB, free: 4.109 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003909/0.9778, allocations: 1.674 MB / 0.9166 GB, free: 2.414 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.9778, allocations: 192 / 0.9166 GB, free: 2.414 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002332/0.9801, allocations: 1.244 MB / 0.9178 GB, free: 1.137 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/0.9821, allocations: 431 kB / 0.9182 GB, free: 0.75 MB / 0.67 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10490:11-10490: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_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10490:11-10490: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.02044/1.003, allocations: 11.55 MB / 0.9295 GB, free: 5.125 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008016/1.003, allocations: 1.126 MB / 0.9306 GB, free: 3.969 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.000898/1.004, allocations: 261.4 kB / 0.9308 GB, free: 3.711 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/1.005, allocations: 487.2 kB / 0.9313 GB, free: 3.234 MB / 0.6856 GB Notification: Performance of SimCode: time 1.002e-06/1.005, allocations: 3.75 kB / 0.9313 GB, free: 3.234 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08693/1.092, allocations: 42.58 MB / 0.9729 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.83/17.92, allocations: 0 / 0.9729 GB, free: 9.082 MB / 0.7325 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_2/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.652822562027723]