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.006468/0.006468, allocations: 96.56 kB / 15.73 MB, free: 5.996 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.001571/0.001571, allocations: 186.3 kB / 16.67 MB, free: 5.926 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7472/0.7472, allocations: 89.46 MB / 380 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002286/0.002286, allocations: 87.86 kB / 0.5139 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1684, allocations: 67.3 MB / 0.5796 GB, free: 8.359 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5939/0.7623, allocations: 189 MB / 0.7642 GB, free: 15.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02445/0.7868, allocations: 17.71 MB / 0.7815 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002441/0.7893, allocations: 23.88 kB / 0.7815 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002719/0.7921, allocations: 0.9743 MB / 0.7825 GB, free: 12.53 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006553/0.7987, allocations: 2.275 MB / 0.7847 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005226/0.8039, allocations: 1.847 MB / 0.7865 GB, free: 8.406 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004993/0.8089, allocations: 3.386 MB / 0.7898 GB, free: 5.004 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007076/0.8097, allocations: 444.2 kB / 0.7902 GB, free: 4.547 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002712/0.8124, allocations: 1.456 MB / 0.7916 GB, free: 3.086 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002101/0.8145, allocations: 1.518 MB / 0.7931 GB, free: 1.562 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002916/0.8148, allocations: 168 kB / 0.7933 GB, free: 1.398 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006364/0.8212, allocations: 2.566 MB / 0.7958 GB, free: 14.83 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0004894/0.8217, allocations: 446.2 kB / 0.7962 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.8228, allocations: 1.022 MB / 0.7972 GB, free: 13.36 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005472/0.8283, allocations: 3.037 MB / 0.8002 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.8283, allocations: 7.984 kB / 0.8002 GB, free: 10.31 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.114e-06/0.8283, allocations: 0 / 0.8002 GB, free: 10.31 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.963e-05/0.8284, allocations: 0 / 0.8002 GB, free: 10.31 MB / 0.6387 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.004863/0.8332, allocations: 2.48 MB / 0.8026 GB, free: 7.77 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/0.8333, allocations: 12.03 kB / 0.8026 GB, free: 7.758 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002537/0.8336, allocations: 211.3 kB / 0.8028 GB, free: 7.543 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006168/0.8342, allocations: 235.6 kB / 0.803 GB, free: 7.312 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001529/0.8357, allocations: 0.9658 MB / 0.804 GB, free: 6.293 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.8358, allocations: 111.2 kB / 0.8041 GB, free: 6.184 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002394/0.8361, allocations: 160.5 kB / 0.8042 GB, free: 6.027 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002855/0.8389, allocations: 1.635 MB / 0.8058 GB, free: 4.336 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.029e-05/0.839, allocations: 0 / 0.8058 GB, free: 4.336 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001539/0.8392, allocations: 67.94 kB / 0.8059 GB, free: 4.27 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.624e-05/0.8392, allocations: 36 kB / 0.8059 GB, free: 4.234 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.8418, allocations: 1.485 MB / 0.8074 GB, free: 2.75 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009548/0.8513, allocations: 7.097 MB / 0.8143 GB, free: 11.08 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002949/0.8543, allocations: 1.541 MB / 0.8158 GB, free: 9.484 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.8555, allocations: 0.76 MB / 0.8166 GB, free: 8.711 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007217/0.8628, allocations: 5.963 MB / 0.8224 GB, free: 1.98 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.43e-05/0.8628, allocations: 60.62 kB / 0.8225 GB, free: 1.914 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=166): time 3.326e-06/0.8628, allocations: 0 / 0.8225 GB, free: 1.914 MB / 0.6544 GB Notification: Performance of matching and sorting (n=166): time 0.006798/0.8696, allocations: 3.127 MB / 0.8255 GB, free: 14.59 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.8698, allocations: 179 kB / 0.8257 GB, free: 14.38 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.8713, allocations: 1.087 MB / 0.8267 GB, free: 13.29 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.8714, allocations: 61.7 kB / 0.8268 GB, free: 13.22 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005325/0.8719, allocations: 0.7057 MB / 0.8275 GB, free: 12.51 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005047/0.8724, allocations: 0.5925 MB / 0.8281 GB, free: 11.91 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004261/0.8729, allocations: 291.5 kB / 0.8283 GB, free: 11.62 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.873, allocations: 305.1 kB / 0.8286 GB, free: 11.32 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.874, allocations: 499.8 kB / 0.8291 GB, free: 10.83 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.8754, allocations: 0.8211 MB / 0.8299 GB, free: 9.883 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.8779, allocations: 1.433 MB / 0.8313 GB, free: 8.32 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.8779, allocations: 8 kB / 0.8313 GB, free: 8.312 MB / 0.67 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003501/0.8814, allocations: 1.85 MB / 0.8331 GB, free: 6.441 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.8814, allocations: 8 kB / 0.8331 GB, free: 6.434 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.8814, allocations: 12 kB / 0.8331 GB, free: 6.422 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007843/0.8822, allocations: 229 kB / 0.8334 GB, free: 6.184 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.8836, allocations: 383.4 kB / 0.8337 GB, free: 5.809 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3542/1.238, allocations: 7.675 MB / 0.8412 GB, free: 223.1 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/1.239, allocations: 167 kB / 0.8414 GB, free: 223.1 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002036/1.24, allocations: 78.53 kB / 0.8415 GB, free: 223.1 MB / 0.67 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.0007521/1.24, allocations: 327.3 kB / 0.8418 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004157/1.241, allocations: 172 kB / 0.8419 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004424/1.245, allocations: 2.047 MB / 0.8439 GB, free: 222.8 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.035e-05/1.245, allocations: 17.47 kB / 0.8439 GB, free: 222.8 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.245, allocations: 4.312 kB / 0.844 GB, free: 222.8 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.853e-05/1.245, allocations: 10.09 kB / 0.844 GB, free: 222.8 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006668/1.252, allocations: 3.875 MB / 0.8477 GB, free: 221.2 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/1.252, allocations: 2.781 kB / 0.8477 GB, free: 221.2 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009997/1.253, allocations: 261 kB / 0.848 GB, free: 221.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001772/1.255, allocations: 475.9 kB / 0.8485 GB, free: 221 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/1.255, allocations: 59.78 kB / 0.8485 GB, free: 221 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005595/1.261, allocations: 9.976 MB / 0.8583 GB, free: 211.4 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.261, allocations: 3.234 kB / 0.8583 GB, free: 211.4 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004675/1.265, allocations: 2.869 MB / 0.8611 GB, free: 209.8 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004534/1.266, allocations: 263.8 kB / 0.8613 GB, free: 209.6 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/1.266, allocations: 46.16 kB / 0.8614 GB, free: 209.6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009772/1.267, allocations: 52.91 kB / 0.8614 GB, free: 209.6 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002879/1.267, allocations: 135.3 kB / 0.8615 GB, free: 209.6 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/1.267, allocations: 70.81 kB / 0.8616 GB, free: 209.5 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001042/1.268, allocations: 0.7659 MB / 0.8623 GB, free: 209.2 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.11e-07/1.268, allocations: 2.969 kB / 0.8623 GB, free: 209.2 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002316/1.271, allocations: 0.7804 MB / 0.8631 GB, free: 209.1 MB / 0.67 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.006491/1.277, allocations: 4.055 MB / 0.8671 GB, free: 207 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003784/1.281, allocations: 1.996 MB / 0.869 GB, free: 205.9 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.281, allocations: 1.938 kB / 0.869 GB, free: 205.9 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002498/1.284, allocations: 1.446 MB / 0.8704 GB, free: 205.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/1.287, allocations: 0.5977 MB / 0.871 GB, free: 204.9 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/1.308, allocations: 13.56 MB / 0.8843 GB, free: 197.6 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/1.309, allocations: 1.272 MB / 0.8855 GB, free: 196.8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001593/1.311, allocations: 319.8 kB / 0.8858 GB, free: 196.7 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008435/1.311, allocations: 0.6798 MB / 0.8865 GB, free: 196.2 MB / 0.67 GB Notification: Performance of SimCode: time 1.914e-06/1.311, allocations: 5.438 kB / 0.8865 GB, free: 196.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09779/1.409, allocations: 51.68 MB / 0.9369 GB, free: 155.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.24/17.65, allocations: 7.938 kB / 0.937 GB, free: 155.4 MB / 0.67 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat","/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