Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007571/0.0007571, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008567/0.0008567, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8398/0.8398, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.5925/0.5925, allocations: 116 MB / 375.2 MB, free: 4.191 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 0.5532 GB, free: 13.35 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.337e-05/1.452e-05, allocations: 10.08 kB / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.3769/0.3769, allocations: 144.9 MB / 0.6947 GB, free: 5.379 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0074/0.3843, allocations: 10.3 MB / 0.7048 GB, free: 2.723 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005492/0.3849, allocations: 65.75 kB / 0.7048 GB, free: 2.684 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.3859, allocations: 0.5323 MB / 0.7054 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001414/0.3873, allocations: 0.9787 MB / 0.7063 GB, free: 1.828 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001371/0.3887, allocations: 0.8541 MB / 0.7072 GB, free: 1.375 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0009601/0.3896, allocations: 1.56 MB / 0.7087 GB, free: 420 kB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.3899, allocations: 199.8 kB / 0.7089 GB, free: 292 kB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008226/0.3907, allocations: 0.8513 MB / 0.7097 GB, free: 15.77 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005635/0.3913, allocations: 0.5686 MB / 0.7103 GB, free: 15.49 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 8.658e-05/0.3914, allocations: 77.41 kB / 0.7103 GB, free: 15.49 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001506/0.3929, allocations: 1.23 MB / 0.7115 GB, free: 14.96 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.393, allocations: 204.7 kB / 0.7117 GB, free: 14.79 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002401/0.3932, allocations: 366.5 kB / 0.7121 GB, free: 14.62 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.001605/0.3948, allocations: 1.665 MB / 0.7137 GB, free: 13.58 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3948, allocations: 0 / 0.7137 GB, free: 13.58 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.204e-06/0.3948, allocations: 3 kB / 0.7137 GB, free: 13.58 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.156e-05/0.3949, allocations: 0 / 0.7137 GB, free: 13.58 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001763/0.3966, allocations: 1.457 MB / 0.7151 GB, free: 12.46 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.3967, allocations: 8.375 kB / 0.7151 GB, free: 12.46 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.245e-05/0.3968, allocations: 115 kB / 0.7152 GB, free: 12.36 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.397, allocations: 138.4 kB / 0.7154 GB, free: 12.29 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008589/0.3978, allocations: 0.7584 MB / 0.7161 GB, free: 11.71 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.3978, allocations: 55.62 kB / 0.7162 GB, free: 11.68 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.429e-05/0.3979, allocations: 73.36 kB / 0.7162 GB, free: 11.66 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007525/0.3987, allocations: 0.7725 MB / 0.717 GB, free: 11.18 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3987, allocations: 6.531 kB / 0.717 GB, free: 11.18 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.3987, allocations: 31.28 kB / 0.717 GB, free: 11.15 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.3987, allocations: 16.66 kB / 0.717 GB, free: 11.15 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006595/0.3994, allocations: 0.653 MB / 0.7177 GB, free: 10.84 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.4016, allocations: 2.109 MB / 0.7197 GB, free: 9.223 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006925/0.4023, allocations: 0.5184 MB / 0.7202 GB, free: 8.938 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002265/0.4025, allocations: 221.7 kB / 0.7205 GB, free: 8.828 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000963/0.4035, allocations: 0.8726 MB / 0.7213 GB, free: 8.172 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.4035, allocations: 38.31 kB / 0.7213 GB, free: 8.129 MB / 0.573 GB Notification: Performance of pre-optimization done (n=55): time 2.755e-06/0.4035, allocations: 4 kB / 0.7214 GB, free: 8.125 MB / 0.573 GB Notification: Performance of matching and sorting (n=56): time 0.001927/0.4054, allocations: 1.557 MB / 0.7229 GB, free: 7.195 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.4054, allocations: 57.38 kB / 0.7229 GB, free: 7.133 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005543/0.406, allocations: 0.7585 MB / 0.7237 GB, free: 6.691 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.406, allocations: 40.33 kB / 0.7237 GB, free: 6.648 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.4062, allocations: 480.4 kB / 0.7242 GB, free: 6.23 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 8.749e-05/0.4063, allocations: 198.4 kB / 0.7244 GB, free: 6.059 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.495e-05/0.4064, allocations: 95.61 kB / 0.7244 GB, free: 5.996 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.39e-05/0.4065, allocations: 322.9 kB / 0.7248 GB, free: 5.68 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.4067, allocations: 164.2 kB / 0.7249 GB, free: 5.602 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.4069, allocations: 247.8 kB / 0.7251 GB, free: 5.43 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/0.4074, allocations: 445.5 kB / 0.7256 GB, free: 5.164 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.4074, allocations: 0 / 0.7256 GB, free: 5.164 MB / 0.573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007499/0.4081, allocations: 0.6688 MB / 0.7262 GB, free: 4.805 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.4081, allocations: 9.375 kB / 0.7262 GB, free: 4.801 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.4081, allocations: 2.875 kB / 0.7262 GB, free: 4.801 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/0.4084, allocations: 119.7 kB / 0.7263 GB, free: 4.738 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.4086, allocations: 105.6 kB / 0.7264 GB, free: 4.711 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.4102, allocations: 1.923 MB / 0.7283 GB, free: 3.027 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.4103, allocations: 17.45 kB / 0.7283 GB, free: 3.016 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.4103, allocations: 23.91 kB / 0.7284 GB, free: 3.008 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001962/0.4105, allocations: 219.9 kB / 0.7286 GB, free: 2.824 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.4106, allocations: 107.6 kB / 0.7287 GB, free: 2.766 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009133/0.4116, allocations: 0.8577 MB / 0.7295 GB, free: 2.227 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.4116, allocations: 5.781 kB / 0.7295 GB, free: 2.227 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4116, allocations: 2.188 kB / 0.7295 GB, free: 2.227 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.4116, allocations: 0 / 0.7295 GB, free: 2.227 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.413, allocations: 1.417 MB / 0.7309 GB, free: 1.246 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.413, allocations: 3.281 kB / 0.7309 GB, free: 1.246 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.4131, allocations: 90.05 kB / 0.731 GB, free: 1.223 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000204/0.4133, allocations: 120.8 kB / 0.7311 GB, free: 1.156 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.4133, allocations: 16.98 kB / 0.7311 GB, free: 1.145 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.4146, allocations: 1.918 MB / 0.733 GB, free: 15.46 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4146, allocations: 2.406 kB / 0.733 GB, free: 15.46 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009732/0.4155, allocations: 0.9774 MB / 0.734 GB, free: 14.87 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.4157, allocations: 142.8 kB / 0.7341 GB, free: 14.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.038e-05/0.4157, allocations: 10.94 kB / 0.7341 GB, free: 14.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.4159, allocations: 19.8 kB / 0.7341 GB, free: 14.74 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.532e-05/0.416, allocations: 48.53 kB / 0.7342 GB, free: 14.71 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.416, allocations: 21.34 kB / 0.7342 GB, free: 14.7 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003967/0.4164, allocations: 0.5477 MB / 0.7347 GB, free: 14.38 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.4164, allocations: 8 kB / 0.7347 GB, free: 14.37 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0005203/0.4169, allocations: 348.5 kB / 0.7351 GB, free: 14.28 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00153/0.4184, allocations: 1.907 MB / 0.7369 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0006874/0.4191, allocations: 0.588 MB / 0.7375 GB, free: 12.65 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.4191, allocations: 0 / 0.7375 GB, free: 12.65 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0003941/0.4195, allocations: 409.4 kB / 0.7379 GB, free: 12.39 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008509/0.4204, allocations: 378.5 kB / 0.7383 GB, free: 12.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006216/0.4266, allocations: 6.618 MB / 0.7447 GB, free: 8.086 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.4269, allocations: 435.8 kB / 0.7451 GB, free: 7.84 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0003188/0.4272, allocations: 161.1 kB / 0.7453 GB, free: 7.75 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/0.4275, allocations: 399.9 kB / 0.7457 GB, free: 7.414 MB / 0.5886 GB Notification: Performance of SimCode: time 4.11e-07/0.4275, allocations: 0 / 0.7457 GB, free: 7.414 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03738/0.4649, allocations: 30.65 MB / 0.7756 GB, free: 9.617 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.198/7.663, allocations: 8.047 kB / 0.7756 GB, free: 9.609 MB / 0.6198 GB " [Timeout remaining time 652] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.057433843612671]