Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.SimpleStream.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.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_SimpleStream",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_SimpleStream",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.001312/0.001312, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7511/0.7511, allocations: 91.2 MB / 381.6 MB, free: 9.418 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 82.56 kB / 460.4 MB, free: 23.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1205, allocations: 67.69 MB / 0.5157 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.577/0.6975, allocations: 284.6 MB / 0.7936 GB, free: 2.832 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03204/0.7297, allocations: 27.33 MB / 0.8203 GB, free: 7.41 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00138/0.7311, allocations: 51.69 kB / 0.8204 GB, free: 7.359 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003548/0.7346, allocations: 1.388 MB / 0.8217 GB, free: 5.965 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01517/0.7499, allocations: 4.664 MB / 0.8263 GB, free: 1.285 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.3824/1.132, allocations: 2.028 MB / 0.8283 GB, free: 4.121 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0036/1.136, allocations: 2.219 MB / 0.8304 GB, free: 4.121 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/1.137, allocations: 0.6297 MB / 0.831 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00307/1.14, allocations: 1.345 MB / 0.8324 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001534/1.142, allocations: 0.9862 MB / 0.8333 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.000246/1.142, allocations: 136.4 kB / 0.8335 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01852/1.16, allocations: 8.853 MB / 0.8421 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001265/1.162, allocations: 492.8 kB / 0.8426 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002857/1.165, allocations: 0.8419 MB / 0.8434 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01879/1.183, allocations: 5.476 MB / 0.8487 GB, free: 3.859 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/1.184, allocations: 0.9688 kB / 0.8487 GB, free: 3.859 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.814e-06/1.184, allocations: 0 / 0.8487 GB, free: 3.859 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 4.199e-05/1.184, allocations: 0 / 0.8487 GB, free: 3.859 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: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.007958/1.192, allocations: 2.696 MB / 0.8514 GB, free: 18.71 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/1.192, allocations: 9.969 kB / 0.8514 GB, free: 18.71 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002484/1.192, allocations: 186.2 kB / 0.8516 GB, free: 18.67 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004109/1.192, allocations: 176.8 kB / 0.8517 GB, free: 18.58 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/1.194, allocations: 0.9441 MB / 0.8526 GB, free: 18.21 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/1.194, allocations: 87.75 kB / 0.8527 GB, free: 18.21 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002266/1.194, allocations: 121.1 kB / 0.8528 GB, free: 18.21 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002963/1.197, allocations: 1.771 MB / 0.8546 GB, free: 18.09 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.978e-05/1.197, allocations: 2.531 kB / 0.8546 GB, free: 18.09 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/1.198, allocations: 46.09 kB / 0.8546 GB, free: 18.09 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001377/1.198, allocations: 117.7 kB / 0.8547 GB, free: 18.09 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00257/1.2, allocations: 1.88 MB / 0.8566 GB, free: 18.07 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/1.21, allocations: 8.019 MB / 0.8644 GB, free: 13.45 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/1.212, allocations: 0.9146 MB / 0.8653 GB, free: 13.32 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008633/1.213, allocations: 0.6857 MB / 0.866 GB, free: 13.3 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001527/1.214, allocations: 2.354 MB / 0.8683 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/1.215, allocations: 47.19 kB / 0.8683 GB, free: 10.64 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=101): time 3.596e-06/1.215, allocations: 0 / 0.8683 GB, free: 10.64 MB / 0.6387 GB Notification: Performance of matching and sorting (n=103): time 0.006553/1.221, allocations: 3.833 MB / 0.8721 GB, free: 9.902 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/1.221, allocations: 61.5 kB / 0.8721 GB, free: 9.84 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/1.222, allocations: 0.7945 MB / 0.8729 GB, free: 9.695 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.904e-05/1.222, allocations: 43.41 kB / 0.8729 GB, free: 9.664 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003271/1.223, allocations: 0.6015 MB / 0.8735 GB, free: 9.418 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/1.223, allocations: 355.7 kB / 0.8739 GB, free: 9.191 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002635/1.223, allocations: 186.4 kB / 0.874 GB, free: 9.176 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001202/1.223, allocations: 340 kB / 0.8744 GB, free: 8.871 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006922/1.224, allocations: 0.5005 MB / 0.8748 GB, free: 8.871 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000749/1.225, allocations: 0.5813 MB / 0.8754 GB, free: 8.836 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: thermalConduction.deltaE_system = $START.thermalConduction.deltaE_system (0.0 = $START.thermalConduction.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/1.226, allocations: 1.228 MB / 0.8766 GB, free: 8.703 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/1.226, allocations: 4.781 kB / 0.8766 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002298/1.229, allocations: 1.5 MB / 0.8781 GB, free: 8.586 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/1.229, allocations: 4.688 kB / 0.8781 GB, free: 8.586 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/1.229, allocations: 2.781 kB / 0.8781 GB, free: 8.586 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005546/1.229, allocations: 168.5 kB / 0.8783 GB, free: 8.578 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/1.23, allocations: 192 kB / 0.8784 GB, free: 8.574 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002911/1.233, allocations: 2.705 MB / 0.8811 GB, free: 7.039 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000612/1.233, allocations: 25.92 kB / 0.8811 GB, free: 7.039 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/1.234, allocations: 70.73 kB / 0.8812 GB, free: 7.039 MB / 0.6387 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: thermalConduction.deltaE_system = $START.thermalConduction.deltaE_system. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (95): * Single equations (assignments): 89 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007954/1.234, allocations: 336.6 kB / 0.8815 GB, free: 6.914 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/1.235, allocations: 111.7 kB / 0.8816 GB, free: 6.855 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/1.238, allocations: 2.134 MB / 0.8837 GB, free: 6.676 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.147e-05/1.238, allocations: 9.75 kB / 0.8837 GB, free: 6.676 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/1.238, allocations: 3.844 kB / 0.8837 GB, free: 6.676 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/1.238, allocations: 5.141 kB / 0.8837 GB, free: 6.676 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00491/1.243, allocations: 3.375 MB / 0.887 GB, free: 6.16 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/1.243, allocations: 0 / 0.887 GB, free: 6.16 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006102/1.244, allocations: 177.9 kB / 0.8872 GB, free: 6.16 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005233/1.244, allocations: 182.1 kB / 0.8873 GB, free: 6.148 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.48e-05/1.244, allocations: 35.25 kB / 0.8874 GB, free: 6.148 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/1.247, allocations: 2.708 MB / 0.89 GB, free: 4.617 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.247, allocations: 0 / 0.89 GB, free: 4.617 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003145/1.25, allocations: 2.346 MB / 0.8923 GB, free: 4.355 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003039/1.251, allocations: 185.9 kB / 0.8925 GB, free: 4.199 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/1.251, allocations: 16.06 kB / 0.8925 GB, free: 4.199 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004528/1.251, allocations: 28.91 kB / 0.8925 GB, free: 4.199 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/1.251, allocations: 87.72 kB / 0.8926 GB, free: 4.199 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/1.251, allocations: 67.48 kB / 0.8927 GB, free: 4.195 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006893/1.252, allocations: 0.5832 MB / 0.8932 GB, free: 4.086 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.21e-07/1.252, allocations: 0.9375 kB / 0.8932 GB, free: 4.086 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002999/1.255, allocations: 0.9317 MB / 0.8942 GB, free: 3.949 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (thermalConduction.h,heatCapacitor.T,flowResistance2.inlet.m_flow,flowResistance3.inlet.m_flow) * 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 (91): * Single equations (assignments): 85 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006357/1.262, allocations: 4.075 MB / 0.8981 GB, free: 2.969 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00297/1.265, allocations: 1.708 MB / 0.8998 GB, free: 2.816 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/1.265, allocations: 0 / 0.8998 GB, free: 2.816 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001201/1.266, allocations: 0.9388 MB / 0.9007 GB, free: 2.676 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/1.268, allocations: 423.6 kB / 0.9011 GB, free: 2.617 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0165/1.284, allocations: 11.19 MB / 0.9121 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008807/1.285, allocations: 1.267 MB / 0.9133 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001471/1.287, allocations: 0.6015 MB / 0.9139 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007507/1.287, allocations: 0.5959 MB / 0.9145 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of SimCode: time 8.62e-07/1.287, allocations: 0 / 0.9145 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08639/1.374, allocations: 48.98 MB / 0.9623 GB, free: 10.77 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 11/12.37, allocations: 10.75 kB / 0.9623 GB, free: 10.77 MB / 0.7012 GB (rm -f ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.SimpleStream.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Examples.SimpleStream_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_Examples_SimpleStream.fmu > ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.SimpleStream_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleStream_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleStream.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches