Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] 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: translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001989/0.001989, allocations: 110.6 kB / 16.62 MB, free: 5.586 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.002189/0.002189, allocations: 188.7 kB / 17.61 MB, free: 4.762 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.36/1.36, allocations: 225.6 MB / 244.1 MB, free: 13.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7121/0.7121, allocations: 94.56 MB / 391.5 MB, free: 0.918 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 83.86 kB / 0.5351 GB, free: 4.469 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2901, allocations: 71.83 MB / 0.6053 GB, free: 14.76 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05126/0.3414, allocations: 53.7 MB / 0.6577 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02481/0.3662, allocations: 21.68 MB / 0.6789 GB, free: 4.055 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001679/0.3679, allocations: 71.5 kB / 0.679 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002303/0.3702, allocations: 0.8963 MB / 0.6798 GB, free: 3.082 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004864/0.375, allocations: 1.731 MB / 0.6815 GB, free: 1.34 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003601/0.3786, allocations: 1.342 MB / 0.6828 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003704/0.3823, allocations: 2.559 MB / 0.6853 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006237/0.383, allocations: 324.2 kB / 0.6856 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001904/0.3849, allocations: 1.07 MB / 0.6867 GB, free: 12 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001212/0.3861, allocations: 0.96 MB / 0.6876 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002065/0.3863, allocations: 132 kB / 0.6878 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003382/0.3897, allocations: 1.272 MB / 0.689 GB, free: 9.633 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003944/0.3901, allocations: 342.3 kB / 0.6893 GB, free: 9.297 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0009671/0.391, allocations: 0.9049 MB / 0.6902 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0048/0.3958, allocations: 2.688 MB / 0.6928 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3958, allocations: 0 / 0.6928 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3958, allocations: 0 / 0.6928 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.825e-05/0.3959, allocations: 0 / 0.6928 GB, free: 5.691 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.004172/0.4, allocations: 2.428 MB / 0.6952 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.4001, allocations: 12.03 kB / 0.6952 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003632/0.4004, allocations: 226.5 kB / 0.6954 GB, free: 2.965 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002202/0.4026, allocations: 1.302 MB / 0.6967 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.407e-05/0.4027, allocations: 86.28 kB / 0.6968 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.4029, allocations: 120 kB / 0.6969 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002068/0.405, allocations: 1.198 MB / 0.6981 GB, free: 172 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.701e-05/0.405, allocations: 3.938 kB / 0.6981 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.221e-05/0.4051, allocations: 55.94 kB / 0.6981 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/0.4051, allocations: 28 kB / 0.6982 GB, free: 84 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001922/0.407, allocations: 1.129 MB / 0.6993 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006357/0.4134, allocations: 5.013 MB / 0.7041 GB, free: 9.48 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.4148, allocations: 0.8203 MB / 0.7049 GB, free: 8.652 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000712/0.4156, allocations: 426.3 kB / 0.7054 GB, free: 8.23 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005373/0.4209, allocations: 5.162 MB / 0.7104 GB, free: 2.207 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.421, allocations: 47.56 kB / 0.7104 GB, free: 2.152 MB / 0.545 GB Notification: Performance of pre-optimization done (n=103): time 2.074e-06/0.421, allocations: 0 / 0.7104 GB, free: 2.152 MB / 0.545 GB Notification: Performance of matching and sorting (n=103): time 0.003526/0.4245, allocations: 1.719 MB / 0.7121 GB, free: 376 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.4245, allocations: 60.41 kB / 0.7122 GB, free: 304 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/0.4262, allocations: 1.287 MB / 0.7134 GB, free: 15 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.436e-05/0.4263, allocations: 45.7 kB / 0.7135 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006221/0.4269, allocations: 0.7661 MB / 0.7142 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003014/0.4272, allocations: 368.8 kB / 0.7146 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/0.4275, allocations: 178.6 kB / 0.7148 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001563/0.4276, allocations: 338 kB / 0.7151 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005754/0.4282, allocations: 305.8 kB / 0.7154 GB, free: 13 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007154/0.4289, allocations: 438 kB / 0.7158 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.4303, allocations: 0.7582 MB / 0.7165 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.4303, allocations: 7.938 kB / 0.7165 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002202/0.4325, allocations: 1.151 MB / 0.7177 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.4325, allocations: 8 kB / 0.7177 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.4326, allocations: 4 kB / 0.7177 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005835/0.4331, allocations: 158.6 kB / 0.7178 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007091/0.4338, allocations: 195.7 kB / 0.718 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004492/0.4383, allocations: 4.825 MB / 0.7227 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007421/0.4391, allocations: 91.38 kB / 0.7228 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.4392, allocations: 43.98 kB / 0.7228 GB, free: 4.824 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005103/0.4397, allocations: 270.8 kB / 0.7231 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/0.44, allocations: 174.9 kB / 0.7233 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003007/0.443, allocations: 1.644 MB / 0.7249 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.443, allocations: 11.98 kB / 0.7249 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.443, allocations: 4 kB / 0.7249 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.443, allocations: 7.969 kB / 0.7249 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004321/0.4473, allocations: 2.621 MB / 0.7275 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.4473, allocations: 192 / 0.7275 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005967/0.4479, allocations: 171.8 kB / 0.7276 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000514/0.4484, allocations: 170.5 kB / 0.7278 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-05/0.4485, allocations: 35.97 kB / 0.7278 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004203/0.4527, allocations: 4.825 MB / 0.7325 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4527, allocations: 0 / 0.7325 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002924/0.4556, allocations: 1.623 MB / 0.7341 GB, free: 8.676 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005327/0.4562, allocations: 351.6 kB / 0.7345 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.4563, allocations: 35.88 kB / 0.7345 GB, free: 8.277 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005526/0.4569, allocations: 23.98 kB / 0.7345 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.4571, allocations: 84.77 kB / 0.7346 GB, free: 8.172 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.483e-05/0.4571, allocations: 43.97 kB / 0.7346 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00125/0.4584, allocations: 0.9093 MB / 0.7355 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4584, allocations: 0 / 0.7355 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001466/0.4599, allocations: 0.5962 MB / 0.7361 GB, free: 6.629 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.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 (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001018/0.4609, allocations: 0.7301 MB / 0.7368 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002047/0.4629, allocations: 1.145 MB / 0.7379 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4629, allocations: 3.938 kB / 0.7379 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.4641, allocations: 0.7991 MB / 0.7387 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/0.4662, allocations: 0.5155 MB / 0.7392 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004506/0.4707, allocations: 2.794 MB / 0.7419 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008908/0.4716, allocations: 1.257 MB / 0.7432 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008854/0.4724, allocations: 300.8 kB / 0.7435 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000311/0.4728, allocations: 135.4 kB / 0.7436 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of SimCode: time 6.71e-07/0.4728, allocations: 0 / 0.7436 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of Templates: time 0.05102/0.5238, allocations: 29.89 MB / 0.7728 GB, free: 1.188 MB / 0.6075 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches