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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001258, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 197.2 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6003/0.6003, allocations: 89.52 MB / 379.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 77.8 kB / 457.7 MB, free: 23.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09872/0.1001, allocations: 67.31 MB / 0.5127 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06288/0.163, allocations: 69.64 MB / 0.5807 GB, free: 6.949 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2115/0.3745, allocations: 27.03 MB / 0.6071 GB, free: 6.754 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00073/0.3753, allocations: 20.12 kB / 0.6071 GB, free: 6.754 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009987/0.3763, allocations: 444 kB / 0.6075 GB, free: 6.75 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002254/0.3786, allocations: 1.095 MB / 0.6086 GB, free: 6.738 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00308/0.3817, allocations: 1.472 MB / 0.61 GB, free: 6.723 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.3831, allocations: 2.13 MB / 0.6121 GB, free: 6.723 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.3835, allocations: 313.2 kB / 0.6124 GB, free: 6.668 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0371/0.4206, allocations: 19.36 MB / 0.6313 GB, free: 1.508 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009849/0.4216, allocations: 0.7945 MB / 0.6321 GB, free: 1.219 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.4217, allocations: 83.22 kB / 0.6322 GB, free: 1.219 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2507/0.6725, allocations: 127.3 MB / 0.7565 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006386/0.6731, allocations: 278.9 kB / 0.7568 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.6742, allocations: 0.6071 MB / 0.7574 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004706/0.6789, allocations: 2.696 MB / 0.76 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.6789, allocations: 0 / 0.76 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of FrontEnd: time 8.02e-07/0.6789, allocations: 0 / 0.76 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.01e-05/0.6789, allocations: 0 / 0.76 GB, free: 8.941 MB / 0.5762 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.003577/0.6825, allocations: 1.897 MB / 0.7619 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.6825, allocations: 12.03 kB / 0.7619 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001738/0.6827, allocations: 152.2 kB / 0.762 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.683, allocations: 135.4 kB / 0.7621 GB, free: 6.707 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007632/0.6837, allocations: 0.639 MB / 0.7628 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.6839, allocations: 215.6 kB / 0.763 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.6841, allocations: 99.91 kB / 0.7631 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002299/0.6864, allocations: 1.446 MB / 0.7645 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.6864, allocations: 11.92 kB / 0.7645 GB, free: 4.203 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.755e-05/0.6865, allocations: 36.7 kB / 0.7645 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.156e-05/0.6866, allocations: 38 kB / 0.7646 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002879/0.6895, allocations: 1.64 MB / 0.7662 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006695/0.6962, allocations: 5.179 MB / 0.7712 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00245/0.6986, allocations: 1.269 MB / 0.7725 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.6999, allocations: 0.7959 MB / 0.7732 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002829/0.7028, allocations: 4.204 MB / 0.7773 GB, free: 5.918 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.7028, allocations: 43.56 kB / 0.7774 GB, free: 5.867 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 2.705e-06/0.7028, allocations: 0 / 0.7774 GB, free: 5.867 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.00852/0.7114, allocations: 4.546 MB / 0.7818 GB, free: 1.184 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.7114, allocations: 98.05 kB / 0.7819 GB, free: 1.066 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006155/0.7121, allocations: 0.6257 MB / 0.7825 GB, free: 440 kB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.838e-05/0.7122, allocations: 53.7 kB / 0.7826 GB, free: 380 kB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.7124, allocations: 377.4 kB / 0.7829 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.7127, allocations: 464.4 kB / 0.7834 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003318/0.7131, allocations: 226.9 kB / 0.7836 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.7132, allocations: 349.9 kB / 0.7839 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.7143, allocations: 0.5647 MB / 0.7845 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/0.7156, allocations: 0.6984 MB / 0.7852 GB, free: 13.68 MB / 0.6075 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.002586/0.7182, allocations: 1.425 MB / 0.7866 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.7182, allocations: 0 / 0.7866 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003473/0.7217, allocations: 1.841 MB / 0.7884 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.7217, allocations: 8 kB / 0.7884 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.7217, allocations: 15.94 kB / 0.7884 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002298/0.724, allocations: 0.6016 MB / 0.789 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008897/0.7249, allocations: 207.7 kB / 0.7892 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002532/0.7275, allocations: 2.688 MB / 0.7918 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006996/0.7282, allocations: 59.88 kB / 0.7919 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.7283, allocations: 59.95 kB / 0.7919 GB, free: 6.555 MB / 0.6075 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.0003853/0.7287, allocations: 261.6 kB / 0.7922 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000214/0.7289, allocations: 106.7 kB / 0.7923 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00415/0.7331, allocations: 2.294 MB / 0.7945 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.7331, allocations: 16 kB / 0.7945 GB, free: 3.828 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.7331, allocations: 4 kB / 0.7945 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.7331, allocations: 11.97 kB / 0.7945 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004513/0.7376, allocations: 2.916 MB / 0.7974 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.23e-05/0.7377, allocations: 15.94 kB / 0.7974 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009936/0.7387, allocations: 208.5 kB / 0.7976 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006915/0.7394, allocations: 292.4 kB / 0.7979 GB, free: 360 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.963e-05/0.7395, allocations: 43.95 kB / 0.7979 GB, free: 316 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004267/0.7438, allocations: 4.242 MB / 0.8021 GB, free: 11.81 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7438, allocations: 0 / 0.8021 GB, free: 11.81 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004523/0.7483, allocations: 2.559 MB / 0.8046 GB, free: 9.223 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003702/0.7487, allocations: 296.5 kB / 0.8048 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.7488, allocations: 31.98 kB / 0.8049 GB, free: 8.883 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007197/0.7496, allocations: 55.81 kB / 0.8049 GB, free: 8.828 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.7497, allocations: 96.83 kB / 0.805 GB, free: 8.734 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.94e-05/0.7498, allocations: 51.94 kB / 0.8051 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00052/0.7504, allocations: 0.4951 MB / 0.8055 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7504, allocations: 0 / 0.8055 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001412/0.7518, allocations: 0.6635 MB / 0.8062 GB, free: 7.531 MB / 0.6231 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.005824/0.7576, allocations: 3.798 MB / 0.8099 GB, free: 3.742 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003155/0.7608, allocations: 1.763 MB / 0.8116 GB, free: 1.938 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7608, allocations: 8 kB / 0.8116 GB, free: 1.93 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002003/0.7628, allocations: 1.282 MB / 0.8129 GB, free: 0.5898 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.7644, allocations: 376.4 kB / 0.8132 GB, free: 224 kB / 0.6231 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10228:11-10228: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:10228:11-10228: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.01714/0.7816, allocations: 11.9 MB / 0.8249 GB, free: 3.992 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.7822, allocations: 1.083 MB / 0.8259 GB, free: 2.879 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0007531/0.7829, allocations: 244.4 kB / 0.8262 GB, free: 2.637 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005679/0.7835, allocations: 419.2 kB / 0.8266 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of SimCode: time 4.41e-07/0.7835, allocations: 0 / 0.8266 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.566/4.35, allocations: 38.91 MB / 0.8646 GB, free: 246.3 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/4.35, allocations: 218 kB / 0.8648 GB, free: 246.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.705/7.054, allocations: 3.938 kB / 0.8648 GB, free: 246.1 MB / 0.6387 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) 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) Reference file matches