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-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_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.004349/0.004349, allocations: 108 kB / 15.6 MB, free: 132 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.003752/0.003752, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.322/2.322, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.24/1.24, allocations: 91.18 MB / 381.6 MB, free: 9.387 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.002551/0.002552, allocations: 79.44 kB / 460.4 MB, free: 23.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2842, allocations: 67.7 MB / 0.5157 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 1.137/1.422, allocations: 189.2 MB / 0.7005 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0406/1.462, allocations: 17.8 MB / 0.7179 GB, free: 500 kB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006068/1.469, allocations: 63.56 kB / 0.7179 GB, free: 436 kB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.006047/1.475, allocations: 0.9898 MB / 0.7189 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01539/1.49, allocations: 2.332 MB / 0.7212 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.01081/1.501, allocations: 1.837 MB / 0.723 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01248/1.514, allocations: 3.534 MB / 0.7264 GB, free: 7.711 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001932/1.516, allocations: 455.8 kB / 0.7269 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007422/1.523, allocations: 1.525 MB / 0.7283 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004169/1.527, allocations: 1.553 MB / 0.7299 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001824/1.529, allocations: 164 kB / 0.73 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0123/1.541, allocations: 2.562 MB / 0.7325 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001607/1.543, allocations: 450.1 kB / 0.733 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.005272/1.548, allocations: 1.08 MB / 0.734 GB, free: 15.89 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01468/1.563, allocations: 3.166 MB / 0.7371 GB, free: 12.71 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.329e-05/1.563, allocations: 4 kB / 0.7371 GB, free: 12.71 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.476e-06/1.563, allocations: 0 / 0.7371 GB, free: 12.71 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.406e-05/1.563, allocations: 0 / 0.7371 GB, free: 12.71 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.009278/1.573, allocations: 2.597 MB / 0.7396 GB, free: 10.05 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 8.321e-05/1.573, allocations: 8.031 kB / 0.7396 GB, free: 10.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003732/1.573, allocations: 215.1 kB / 0.7399 GB, free: 9.828 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009941/1.574, allocations: 246.3 kB / 0.7401 GB, free: 9.586 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003758/1.578, allocations: 1.197 MB / 0.7413 GB, free: 8.336 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003347/1.578, allocations: 110.9 kB / 0.7414 GB, free: 8.227 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009826/1.579, allocations: 159.8 kB / 0.7415 GB, free: 8.07 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003954/1.583, allocations: 1.631 MB / 0.7431 GB, free: 6.379 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.08e-05/1.583, allocations: 4 kB / 0.7431 GB, free: 6.375 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/1.584, allocations: 67.94 kB / 0.7432 GB, free: 6.309 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.763e-05/1.584, allocations: 32 kB / 0.7432 GB, free: 6.277 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004427/1.588, allocations: 1.489 MB / 0.7447 GB, free: 4.785 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01485/1.603, allocations: 7.168 MB / 0.7517 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004434/1.608, allocations: 1.563 MB / 0.7532 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/1.609, allocations: 0.7404 MB / 0.7539 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01177/1.621, allocations: 5.955 MB / 0.7597 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001938/1.621, allocations: 59.8 kB / 0.7598 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=166): time 1.4e-05/1.621, allocations: 0 / 0.7598 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of matching and sorting (n=166): time 0.01098/1.632, allocations: 3.146 MB / 0.7629 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/1.632, allocations: 175.1 kB / 0.763 GB, free: 336 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0025/1.635, allocations: 1.281 MB / 0.7643 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001419/1.635, allocations: 57.7 kB / 0.7643 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008694/1.636, allocations: 0.7724 MB / 0.7651 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005306/1.636, allocations: 0.5659 MB / 0.7656 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007769/1.637, allocations: 287.5 kB / 0.7659 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0003019/1.638, allocations: 309.1 kB / 0.7662 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/1.64, allocations: 495.8 kB / 0.7667 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/1.641, allocations: 0.8289 MB / 0.7675 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002809/1.644, allocations: 1.442 MB / 0.7689 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.955e-05/1.644, allocations: 4 kB / 0.7689 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.0064/1.651, allocations: 1.86 MB / 0.7707 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/1.651, allocations: 8 kB / 0.7707 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.84e-05/1.651, allocations: 10.44 kB / 0.7707 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009979/1.652, allocations: 224.1 kB / 0.7709 GB, free: 7.875 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/1.653, allocations: 387.3 kB / 0.7713 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.664, allocations: 7.683 MB / 0.7788 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003429/1.667, allocations: 162.3 kB / 0.779 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005/1.668, allocations: 80.05 kB / 0.779 GB, free: 14.87 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.001166/1.669, allocations: 337.3 kB / 0.7794 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009125/1.67, allocations: 185.7 kB / 0.7795 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006388/1.676, allocations: 2.082 MB / 0.7816 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/1.676, allocations: 16 kB / 0.7816 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/1.676, allocations: 4 kB / 0.7816 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-05/1.676, allocations: 11.97 kB / 0.7816 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/1.687, allocations: 3.929 MB / 0.7854 GB, free: 8.137 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-05/1.687, allocations: 8 kB / 0.7855 GB, free: 8.129 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/1.688, allocations: 251.7 kB / 0.7857 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002776/1.691, allocations: 475.5 kB / 0.7861 GB, free: 7.391 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006146/1.691, allocations: 55.97 kB / 0.7862 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01374/1.705, allocations: 9.971 MB / 0.7959 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.308e-06/1.705, allocations: 7.969 kB / 0.7959 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009018/1.714, allocations: 2.867 MB / 0.7987 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/1.716, allocations: 282.3 kB / 0.799 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006047/1.716, allocations: 43.84 kB / 0.7991 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002314/1.719, allocations: 59.95 kB / 0.7991 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008262/1.719, allocations: 128.6 kB / 0.7992 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/1.72, allocations: 75.95 kB / 0.7993 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001613/1.721, allocations: 0.8848 MB / 0.8002 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.721, allocations: 0 / 0.8002 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003558/1.725, allocations: 0.7725 MB / 0.8009 GB, free: 7.363 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.009942/1.735, allocations: 4.075 MB / 0.8049 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0053/1.74, allocations: 2.057 MB / 0.8069 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.547e-05/1.74, allocations: 4 kB / 0.8069 GB, free: 1.082 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.004678/1.745, allocations: 1.446 MB / 0.8083 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004382/1.749, allocations: 0.6171 MB / 0.8089 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6063/2.356, allocations: 15.93 MB / 0.8245 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/2.358, allocations: 1.331 MB / 0.8258 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003778/2.362, allocations: 351.5 kB / 0.8261 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002509/2.365, allocations: 0.7666 MB / 0.8269 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of SimCode: time 1.614e-06/2.365, allocations: 0.7812 kB / 0.8269 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2087/2.573, allocations: 53.48 MB / 0.8791 GB, free: 203.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.76/24.33, allocations: 11.86 kB / 0.8791 GB, free: 203.8 MB / 0.6231 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