Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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_ThermofluidStream_FlowControl_Tests_PCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_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.007457/0.007457, allocations: 98.36 kB / 15.73 MB, free: 5.605 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.001886/0.001886, allocations: 192.4 kB / 16.67 MB, free: 5.527 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6919/0.6919, allocations: 89.46 MB / 380 MB, free: 8.598 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 83.86 kB / 0.5139 GB, free: 7.125 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3411, allocations: 67.29 MB / 0.5796 GB, free: 15.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5498/0.891, allocations: 189 MB / 0.7642 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01965/0.9107, allocations: 17.71 MB / 0.7815 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00282/0.9135, allocations: 31.19 kB / 0.7815 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00293/0.9165, allocations: 0.9778 MB / 0.7825 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006825/0.9233, allocations: 2.281 MB / 0.7847 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004989/0.9283, allocations: 1.829 MB / 0.7865 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004669/0.933, allocations: 3.393 MB / 0.7898 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006569/0.9337, allocations: 443.1 kB / 0.7902 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.9367, allocations: 1.456 MB / 0.7916 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002272/0.9389, allocations: 1.52 MB / 0.7931 GB, free: 408 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003458/0.9393, allocations: 168.2 kB / 0.7933 GB, free: 408 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005821/0.9451, allocations: 2.57 MB / 0.7958 GB, free: 356 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000492/0.9457, allocations: 441.7 kB / 0.7962 GB, free: 284 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001441/0.9471, allocations: 1.025 MB / 0.7972 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005967/0.9531, allocations: 3.046 MB / 0.8002 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.9531, allocations: 3.594 kB / 0.8002 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.234e-06/0.9531, allocations: 0.9688 kB / 0.8002 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.199e-05/0.9532, allocations: 0 / 0.8002 GB, free: 15.52 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.004732/0.9579, allocations: 2.477 MB / 0.8026 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.958, allocations: 8.562 kB / 0.8026 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002213/0.9582, allocations: 214.2 kB / 0.8028 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006285/0.9588, allocations: 236.4 kB / 0.803 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/0.9604, allocations: 0.9659 MB / 0.804 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.13e-05/0.9605, allocations: 110.7 kB / 0.8041 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/0.9607, allocations: 157.6 kB / 0.8042 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002703/0.9634, allocations: 1.64 MB / 0.8058 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.349e-05/0.9635, allocations: 0.875 kB / 0.8059 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/0.9636, allocations: 64.56 kB / 0.8059 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.525e-05/0.9637, allocations: 35.53 kB / 0.8059 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002248/0.9659, allocations: 1.482 MB / 0.8074 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009437/0.9754, allocations: 7.096 MB / 0.8143 GB, free: 7.875 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002889/0.9783, allocations: 1.545 MB / 0.8158 GB, free: 7.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.9794, allocations: 0.7529 MB / 0.8166 GB, free: 6.625 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006667/0.9861, allocations: 5.96 MB / 0.8224 GB, free: 0.6133 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.698e-05/0.9862, allocations: 75.39 kB / 0.8225 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=166): time 2.966e-06/0.9862, allocations: 0 / 0.8225 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of matching and sorting (n=166): time 0.006703/0.9929, allocations: 3.13 MB / 0.8255 GB, free: 13.63 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.993, allocations: 178.1 kB / 0.8257 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.9945, allocations: 1.088 MB / 0.8267 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001184/0.9947, allocations: 61.69 kB / 0.8268 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005689/0.9952, allocations: 0.6983 MB / 0.8275 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004964/0.9957, allocations: 0.5958 MB / 0.8281 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004237/0.9962, allocations: 296.2 kB / 0.8284 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.9963, allocations: 305.1 kB / 0.8286 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009659/0.9973, allocations: 495.8 kB / 0.8291 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.9985, allocations: 0.8273 MB / 0.8299 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002406/1.001, allocations: 1.434 MB / 0.8313 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/1.001, allocations: 0 / 0.8313 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003599/1.005, allocations: 1.847 MB / 0.8331 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/1.005, allocations: 12.97 kB / 0.8331 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/1.005, allocations: 9.562 kB / 0.8332 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008085/1.005, allocations: 226.8 kB / 0.8334 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/1.007, allocations: 378.7 kB / 0.8337 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006717/1.014, allocations: 7.694 MB / 0.8412 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/1.015, allocations: 154.8 kB / 0.8414 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001776/1.015, allocations: 79.97 kB / 0.8415 GB, free: 12.43 MB / 0.6231 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.0007224/1.016, allocations: 332.7 kB / 0.8418 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004291/1.016, allocations: 170.9 kB / 0.8419 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004212/1.021, allocations: 2.05 MB / 0.8439 GB, free: 9.863 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/1.021, allocations: 16 kB / 0.844 GB, free: 9.848 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/1.021, allocations: 4 kB / 0.844 GB, free: 9.844 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/1.021, allocations: 11.97 kB / 0.844 GB, free: 9.832 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006847/1.028, allocations: 3.888 MB / 0.8478 GB, free: 5.895 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/1.028, allocations: 256 / 0.8478 GB, free: 5.895 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009961/1.029, allocations: 256.6 kB / 0.848 GB, free: 5.656 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/1.031, allocations: 472.3 kB / 0.8485 GB, free: 5.172 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/1.031, allocations: 55.97 kB / 0.8485 GB, free: 5.117 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008329/1.039, allocations: 9.979 MB / 0.8583 GB, free: 10.38 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.039, allocations: 8.094 kB / 0.8583 GB, free: 10.37 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00533/1.044, allocations: 2.861 MB / 0.8611 GB, free: 7.461 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000612/1.045, allocations: 259.6 kB / 0.8613 GB, free: 7.188 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/1.045, allocations: 47.88 kB / 0.8614 GB, free: 7.141 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/1.046, allocations: 55.95 kB / 0.8614 GB, free: 7.086 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/1.047, allocations: 135.8 kB / 0.8615 GB, free: 6.957 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/1.047, allocations: 67.95 kB / 0.8616 GB, free: 6.891 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001102/1.048, allocations: 0.7755 MB / 0.8624 GB, free: 6.113 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.5e-07/1.048, allocations: 0 / 0.8624 GB, free: 6.113 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002265/1.05, allocations: 0.7796 MB / 0.8631 GB, free: 5.332 MB / 0.6387 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.006624/1.057, allocations: 4.065 MB / 0.8671 GB, free: 1.258 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003681/1.06, allocations: 1.994 MB / 0.869 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.061, allocations: 0 / 0.869 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.002601/1.063, allocations: 1.441 MB / 0.8705 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003192/1.066, allocations: 0.6021 MB / 0.871 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0222/1.089, allocations: 13.55 MB / 0.8843 GB, free: 15.18 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009823/1.09, allocations: 1.273 MB / 0.8855 GB, free: 13.88 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001332/1.091, allocations: 335.1 kB / 0.8858 GB, free: 13.55 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009302/1.092, allocations: 0.6828 MB / 0.8865 GB, free: 12.87 MB / 0.67 GB Notification: Performance of SimCode: time 9.22e-07/1.092, allocations: 0 / 0.8865 GB, free: 12.87 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.111/1.203, allocations: 51.66 MB / 0.937 GB, free: 9.582 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.19/16.39, allocations: 0 / 0.937 GB, free: 9.582 MB / 0.7169 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.sim & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches