Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.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.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV",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.001617/0.001616, 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.002016/0.002016, allocations: 197.3 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.75/1.75, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9233/0.9233, allocations: 93.7 MB / 384.1 MB, free: 6.973 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002667/0.002668, allocations: 82.34 kB / 463.5 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2048, allocations: 68.26 MB / 0.5193 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.7044/0.9093, allocations: 189.2 MB / 0.7041 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02841/0.9378, allocations: 17.83 MB / 0.7215 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003266/0.9411, allocations: 67.56 kB / 0.7216 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003299/0.9444, allocations: 0.9936 MB / 0.7225 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008298/0.9528, allocations: 2.359 MB / 0.7248 GB, free: 8.371 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006246/0.959, allocations: 1.845 MB / 0.7267 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.006252/0.9653, allocations: 3.612 MB / 0.7302 GB, free: 2.906 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009106/0.9662, allocations: 459.5 kB / 0.7306 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003604/0.9698, allocations: 1.552 MB / 0.7321 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003136/0.973, allocations: 1.556 MB / 0.7337 GB, free: 15.31 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0006317/0.9736, allocations: 168 kB / 0.7338 GB, free: 15.14 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007692/0.9813, allocations: 2.558 MB / 0.7363 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.9824, allocations: 458 kB / 0.7367 GB, free: 12.13 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001959/0.9844, allocations: 1.08 MB / 0.7378 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.009512/0.9939, allocations: 3.186 MB / 0.7409 GB, free: 7.852 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.9939, allocations: 0 / 0.7409 GB, free: 7.852 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.645e-06/0.994, allocations: 0 / 0.7409 GB, free: 7.852 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.729e-05/0.994, allocations: 0 / 0.7409 GB, free: 7.852 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.006392/1, allocations: 2.628 MB / 0.7435 GB, free: 5.164 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.342e-05/1, allocations: 8.031 kB / 0.7435 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003001/1.001, allocations: 215.6 kB / 0.7437 GB, free: 4.938 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007618/1.002, allocations: 249.2 kB / 0.7439 GB, free: 4.691 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002331/1.004, allocations: 1.225 MB / 0.7451 GB, free: 3.414 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/1.004, allocations: 110.9 kB / 0.7452 GB, free: 3.305 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002503/1.004, allocations: 152.8 kB / 0.7454 GB, free: 3.156 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003067/1.007, allocations: 1.648 MB / 0.747 GB, free: 1.453 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.171e-05/1.007, allocations: 0 / 0.747 GB, free: 1.453 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/1.008, allocations: 60 kB / 0.747 GB, free: 1.395 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.673e-05/1.008, allocations: 36 kB / 0.7471 GB, free: 1.359 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002908/1.011, allocations: 1.485 MB / 0.7485 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/1.021, allocations: 7.192 MB / 0.7556 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003251/1.025, allocations: 1.544 MB / 0.7571 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/1.026, allocations: 0.7526 MB / 0.7578 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008282/1.034, allocations: 5.951 MB / 0.7636 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.714e-05/1.035, allocations: 63.75 kB / 0.7637 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=166): time 4.348e-06/1.035, allocations: 0 / 0.7637 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=166): time 0.00754/1.042, allocations: 3.145 MB / 0.7667 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001445/1.042, allocations: 175 kB / 0.7669 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/1.044, allocations: 1.311 MB / 0.7682 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001197/1.044, allocations: 57.7 kB / 0.7682 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008924/1.045, allocations: 0.7843 MB / 0.769 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005484/1.046, allocations: 0.5659 MB / 0.7696 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004788/1.046, allocations: 291.4 kB / 0.7698 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000155/1.047, allocations: 309.1 kB / 0.7701 GB, free: 8.055 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009886/1.048, allocations: 495.8 kB / 0.7706 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/1.049, allocations: 0.8334 MB / 0.7714 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002707/1.052, allocations: 1.438 MB / 0.7728 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.327e-06/1.052, allocations: 4 kB / 0.7728 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004221/1.056, allocations: 1.863 MB / 0.7746 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.000113/1.056, allocations: 8.969 kB / 0.7747 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.94e-05/1.056, allocations: 12 kB / 0.7747 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000841/1.057, allocations: 228.1 kB / 0.7749 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/1.059, allocations: 379.4 kB / 0.7752 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007661/1.066, allocations: 7.687 MB / 0.7828 GB, free: 10.13 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/1.068, allocations: 158.3 kB / 0.7829 GB, free: 9.977 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/1.068, allocations: 80.05 kB / 0.783 GB, free: 9.898 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (201): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008899/1.069, allocations: 337.3 kB / 0.7833 GB, free: 9.559 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005486/1.07, allocations: 189.7 kB / 0.7835 GB, free: 9.371 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004731/1.074, allocations: 2.085 MB / 0.7855 GB, free: 7.23 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/1.074, allocations: 16 kB / 0.7855 GB, free: 7.215 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/1.074, allocations: 4 kB / 0.7855 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.627e-05/1.074, allocations: 11.97 kB / 0.7856 GB, free: 7.199 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008434/1.083, allocations: 3.946 MB / 0.7894 GB, free: 3.145 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/1.083, allocations: 4 kB / 0.7894 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/1.084, allocations: 255.9 kB / 0.7897 GB, free: 2.891 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002037/1.086, allocations: 475.3 kB / 0.7901 GB, free: 2.398 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/1.086, allocations: 59.97 kB / 0.7902 GB, free: 2.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009807/1.096, allocations: 9.963 MB / 0.7999 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/1.096, allocations: 4.031 kB / 0.7999 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007127/1.103, allocations: 2.883 MB / 0.8027 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/1.104, allocations: 278.2 kB / 0.803 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/1.105, allocations: 48.28 kB / 0.803 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/1.106, allocations: 63.95 kB / 0.8031 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005371/1.106, allocations: 136.6 kB / 0.8032 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/1.107, allocations: 67.95 kB / 0.8033 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001558/1.108, allocations: 0.9054 MB / 0.8042 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/1.108, allocations: 0 / 0.8042 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00292/1.111, allocations: 0.7764 MB / 0.8049 GB, free: 2.34 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (volumeFlex2.M,volumeFlex2.U_med,volumeFlex.M,volumeFlex.U_med,flowResistance.inlet.m_flow,volumeFlex1.M,volumeFlex1.U_med,volumeFlex3.M,volumeFlex3.U_med,flowResistance1.inlet.m_flow,pCV2.inlet.m_flow,pCV3.inlet.m_flow,pCV4.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 (140): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,3), (2,3), (2,3), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007652/1.119, allocations: 4.075 MB / 0.8089 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004836/1.124, allocations: 2.043 MB / 0.8109 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.54e-05/1.124, allocations: 11.89 kB / 0.8109 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003171/1.127, allocations: 1.449 MB / 0.8123 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004021/1.131, allocations: 0.6172 MB / 0.8129 GB, free: 9.953 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3768/1.508, allocations: 16.08 MB / 0.8286 GB, free: 229.3 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001429/1.509, allocations: 1.343 MB / 0.8299 GB, free: 228.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001865/1.511, allocations: 350.6 kB / 0.8303 GB, free: 228.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/1.512, allocations: 0.7815 MB / 0.831 GB, free: 228.2 MB / 0.6231 GB Notification: Performance of SimCode: time 9.52e-07/1.512, allocations: 2.25 kB / 0.831 GB, free: 228.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1345/1.647, allocations: 53.81 MB / 0.8836 GB, free: 196.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.15/17.8, allocations: 11.94 kB / 0.8836 GB, free: 196.9 MB / 0.6231 GB (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.PCV_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches