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.006857/0.006857, allocations: 100.8 kB / 15.73 MB, free: 5.98 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.001286/0.001286, allocations: 201.6 kB / 16.68 MB, free: 5.906 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7045/0.7045, allocations: 91.18 MB / 381.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 83.86 kB / 0.5164 GB, free: 4.621 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3513, allocations: 67.68 MB / 0.5825 GB, free: 13.5 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06325/0.4146, allocations: 67.11 MB / 0.648 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02706/0.4417, allocations: 26.73 MB / 0.6741 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.443, allocations: 39.75 kB / 0.6741 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.4443, allocations: 0.5005 MB / 0.6746 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004377/0.4488, allocations: 1.258 MB / 0.6759 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004874/0.4537, allocations: 1.641 MB / 0.6775 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002728/0.4564, allocations: 1.88 MB / 0.6793 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005984/0.457, allocations: 355.3 kB / 0.6796 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.048/0.505, allocations: 20.53 MB / 0.6997 GB, free: 5.527 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001546/0.5066, allocations: 0.8404 MB / 0.7005 GB, free: 4.684 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003301/0.507, allocations: 124 kB / 0.7006 GB, free: 4.562 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5916/1.099, allocations: 127.7 MB / 0.8254 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006105/1.099, allocations: 324.2 kB / 0.8257 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008905/1.1, allocations: 0.6846 MB / 0.8263 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006532/1.107, allocations: 2.87 MB / 0.8292 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/1.107, allocations: 4 kB / 0.8292 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.925e-06/1.107, allocations: 5.859 kB / 0.8292 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.172e-05/1.107, allocations: 0 / 0.8292 GB, free: 15.5 MB / 0.5919 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.004835/1.112, allocations: 2.004 MB / 0.8311 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/1.112, allocations: 8.031 kB / 0.8311 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002181/1.112, allocations: 155.1 kB / 0.8313 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003463/1.112, allocations: 148.4 kB / 0.8314 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/1.114, allocations: 0.8499 MB / 0.8322 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/1.114, allocations: 218.5 kB / 0.8325 GB, free: 12.13 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/1.114, allocations: 107.9 kB / 0.8326 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002344/1.117, allocations: 1.446 MB / 0.834 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/1.117, allocations: 4 kB / 0.834 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/1.117, allocations: 40 kB / 0.834 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.845e-05/1.117, allocations: 41.98 kB / 0.834 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003046/1.12, allocations: 1.635 MB / 0.8356 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00742/1.127, allocations: 5.189 MB / 0.8407 GB, free: 3.512 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002573/1.13, allocations: 1.277 MB / 0.842 GB, free: 2.234 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/1.131, allocations: 0.7926 MB / 0.8427 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003004/1.134, allocations: 4.198 MB / 0.8468 GB, free: 12.31 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.345e-05/1.134, allocations: 51.56 kB / 0.8469 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 4.328e-06/1.134, allocations: 0 / 0.8469 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.009628/1.144, allocations: 4.598 MB / 0.8514 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/1.144, allocations: 94.11 kB / 0.8515 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008773/1.145, allocations: 0.7409 MB / 0.8522 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001152/1.145, allocations: 49.7 kB / 0.8522 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003494/1.145, allocations: 444.5 kB / 0.8527 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004334/1.146, allocations: 460.2 kB / 0.8531 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003614/1.146, allocations: 226.9 kB / 0.8533 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002235/1.146, allocations: 349.9 kB / 0.8536 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/1.148, allocations: 0.5704 MB / 0.8542 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/1.149, allocations: 0.6983 MB / 0.8549 GB, free: 3.898 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.002744/1.152, allocations: 1.424 MB / 0.8563 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.152, allocations: 0 / 0.8563 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003693/1.156, allocations: 1.86 MB / 0.8581 GB, free: 0.5859 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/1.156, allocations: 4 kB / 0.8581 GB, free: 0.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.894e-05/1.156, allocations: 12 kB / 0.8581 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002402/1.158, allocations: 0.6016 MB / 0.8587 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009653/1.159, allocations: 212.3 kB / 0.8589 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002905/1.162, allocations: 2.79 MB / 0.8616 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009041/1.163, allocations: 43.88 kB / 0.8617 GB, free: 12.78 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/1.163, allocations: 59.95 kB / 0.8617 GB, free: 12.72 MB / 0.6231 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.0004916/1.163, allocations: 288.1 kB / 0.862 GB, free: 12.44 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002449/1.164, allocations: 118.5 kB / 0.8621 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004212/1.168, allocations: 2.307 MB / 0.8644 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/1.168, allocations: 16 kB / 0.8644 GB, free: 10 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/1.168, allocations: 8 kB / 0.8644 GB, free: 9.992 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/1.168, allocations: 10.05 kB / 0.8644 GB, free: 9.984 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004727/1.173, allocations: 2.96 MB / 0.8673 GB, free: 7.008 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.491e-05/1.173, allocations: 11.98 kB / 0.8673 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/1.174, allocations: 197.4 kB / 0.8675 GB, free: 6.812 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007367/1.175, allocations: 292.8 kB / 0.8678 GB, free: 6.523 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/1.175, allocations: 47.95 kB / 0.8678 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004761/1.179, allocations: 4.609 MB / 0.8723 GB, free: 1.609 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.179, allocations: 1.641 kB / 0.8723 GB, free: 1.609 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005043/1.185, allocations: 2.556 MB / 0.8748 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005748/1.185, allocations: 307.5 kB / 0.8751 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002539/1.185, allocations: 27.91 kB / 0.8751 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008658/1.186, allocations: 47.95 kB / 0.8752 GB, free: 14.65 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/1.186, allocations: 96.8 kB / 0.8753 GB, free: 14.56 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/1.187, allocations: 57.42 kB / 0.8753 GB, free: 14.51 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007794/1.187, allocations: 0.5639 MB / 0.8759 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.4e-07/1.187, allocations: 0 / 0.8759 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00168/1.189, allocations: 0.6752 MB / 0.8765 GB, free: 13.26 MB / 0.6387 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.006792/1.196, allocations: 3.83 MB / 0.8803 GB, free: 9.477 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003626/1.199, allocations: 1.759 MB / 0.882 GB, free: 7.703 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 7.645e-06/1.2, allocations: 4.188 kB / 0.882 GB, free: 7.699 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002336/1.202, allocations: 1.29 MB / 0.8833 GB, free: 6.379 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/1.204, allocations: 422.7 kB / 0.8837 GB, free: 5.984 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10379:11-10379: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:10379:11-10379: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.01969/1.224, allocations: 11.45 MB / 0.8948 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006642/1.224, allocations: 1.124 MB / 0.8959 GB, free: 9.277 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0008605/1.225, allocations: 261.2 kB / 0.8962 GB, free: 9.02 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006569/1.226, allocations: 479.2 kB / 0.8966 GB, free: 8.551 MB / 0.6544 GB Notification: Performance of SimCode: time 1.373e-06/1.226, allocations: 0 / 0.8966 GB, free: 8.551 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08159/1.308, allocations: 42.63 MB / 0.9383 GB, free: 14.36 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.38/15.69, allocations: 7.781 kB / 0.9383 GB, free: 14.35 MB / 0.7012 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