Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001703/0.001703, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 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.001935/0.001935, allocations: 217.5 kB / 23.04 MB, free: 5.074 MB / 14.72 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 1.421/1.421, allocations: 230.6 MB / 256.8 MB, free: 7.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7547/0.7547, allocations: 94.57 MB / 407.8 MB, free: 9.152 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002424/0.002424, allocations: 82.75 kB / 0.5557 GB, free: 38.72 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1389, allocations: 73.06 MB / 0.6271 GB, free: 448 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.5675/0.7065, allocations: 165.5 MB / 0.7887 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01197/0.7184, allocations: 13.09 MB / 0.8014 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001526/0.72, allocations: 54.59 kB / 0.8015 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002/0.722, allocations: 0.5827 MB / 0.8021 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003317/0.7253, allocations: 0.9029 MB / 0.8029 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002206/0.7275, allocations: 0.8386 MB / 0.8038 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002222/0.7297, allocations: 1.371 MB / 0.8051 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003669/0.7301, allocations: 204.5 kB / 0.8053 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009079/0.731, allocations: 0.5852 MB / 0.8059 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007487/0.7317, allocations: 0.6757 MB / 0.8065 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.964e-05/0.7318, allocations: 77.69 kB / 0.8066 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002806/0.7346, allocations: 1.411 MB / 0.808 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.7348, allocations: 195.8 kB / 0.8082 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004928/0.7353, allocations: 0.5154 MB / 0.8087 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002815/0.7381, allocations: 1.588 MB / 0.8102 GB, free: 0.6523 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.7381, allocations: 2.531 kB / 0.8102 GB, free: 0.6523 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.124e-06/0.7381, allocations: 4 kB / 0.8102 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.313e-05/0.7381, allocations: 0 / 0.8102 GB, free: 0.6484 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002333/0.7405, allocations: 1.384 MB / 0.8116 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.7405, allocations: 15.06 kB / 0.8116 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.894e-05/0.7405, allocations: 21.12 kB / 0.8116 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.7407, allocations: 114 kB / 0.8117 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.7408, allocations: 130.1 kB / 0.8118 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/0.7421, allocations: 0.7056 MB / 0.8125 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.7421, allocations: 51.75 kB / 0.8126 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.7422, allocations: 70.72 kB / 0.8126 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.7434, allocations: 0.7399 MB / 0.8134 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.7434, allocations: 2.391 kB / 0.8134 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/0.7434, allocations: 31.72 kB / 0.8134 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.7435, allocations: 16.34 kB / 0.8134 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009602/0.7444, allocations: 0.6494 MB / 0.814 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003535/0.748, allocations: 3.064 MB / 0.817 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.7491, allocations: 0.5327 MB / 0.8176 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003962/0.7495, allocations: 231.4 kB / 0.8178 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001703/0.7512, allocations: 0.9958 MB / 0.8188 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.7513, allocations: 37.28 kB / 0.8188 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 1.684e-06/0.7513, allocations: 0 / 0.8188 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.00324/0.7545, allocations: 1.561 MB / 0.8203 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.7546, allocations: 56.94 kB / 0.8204 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008395/0.7554, allocations: 0.6974 MB / 0.821 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/0.7554, allocations: 38.42 kB / 0.8211 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003408/0.7558, allocations: 458 kB / 0.8215 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.7559, allocations: 199.8 kB / 0.8217 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.7561, allocations: 89.83 kB / 0.8218 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.7562, allocations: 322.9 kB / 0.8221 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/0.7565, allocations: 164.8 kB / 0.8223 GB, free: 9.785 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003736/0.7569, allocations: 230.9 kB / 0.8225 GB, free: 9.633 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000726/0.7576, allocations: 429.7 kB / 0.8229 GB, free: 9.395 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.7576, allocations: 3.938 kB / 0.8229 GB, free: 9.391 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001214/0.7588, allocations: 0.6457 MB / 0.8235 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.7589, allocations: 4.344 kB / 0.8235 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.7589, allocations: 3.344 kB / 0.8235 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004407/0.7593, allocations: 116.6 kB / 0.8236 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003533/0.7597, allocations: 98.75 kB / 0.8237 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002195/0.7619, allocations: 1.936 MB / 0.8256 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000353/0.7622, allocations: 13.75 kB / 0.8256 GB, free: 7.277 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.044e-05/0.7623, allocations: 25.58 kB / 0.8257 GB, free: 7.27 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (51): * Single equations (assignments): 50 * 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.0003352/0.7626, allocations: 213 kB / 0.8259 GB, free: 7.094 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.7627, allocations: 98.3 kB / 0.826 GB, free: 7.039 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/0.7644, allocations: 0.8592 MB / 0.8268 GB, free: 6.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.7644, allocations: 4.875 kB / 0.8268 GB, free: 6.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.7644, allocations: 2 kB / 0.8268 GB, free: 6.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.7645, allocations: 7.922 kB / 0.8268 GB, free: 6.492 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00273/0.7672, allocations: 1.506 MB / 0.8283 GB, free: 5.449 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.7672, allocations: 2.906 kB / 0.8283 GB, free: 5.449 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/0.7675, allocations: 87.3 kB / 0.8284 GB, free: 5.434 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000375/0.7679, allocations: 120.7 kB / 0.8285 GB, free: 5.367 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.7679, allocations: 18.89 kB / 0.8285 GB, free: 5.355 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/0.7701, allocations: 1.961 MB / 0.8304 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7701, allocations: 0 / 0.8304 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.7717, allocations: 0.9806 MB / 0.8314 GB, free: 3.051 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.7719, allocations: 79.41 kB / 0.8315 GB, free: 2.992 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.102e-05/0.772, allocations: 13.91 kB / 0.8315 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.7723, allocations: 16.89 kB / 0.8315 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.7725, allocations: 56.41 kB / 0.8315 GB, free: 2.938 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-05/0.7725, allocations: 16.88 kB / 0.8316 GB, free: 2.934 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007014/0.7732, allocations: 0.5115 MB / 0.8321 GB, free: 2.641 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.7732, allocations: 4.062 kB / 0.8321 GB, free: 2.637 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001007/0.7742, allocations: 327.3 kB / 0.8324 GB, free: 2.555 MB / 0.5919 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.00264/0.7769, allocations: 1.898 MB / 0.8342 GB, free: 1.281 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001264/0.7781, allocations: 0.59 MB / 0.8348 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7781, allocations: 0 / 0.8348 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000753/0.7789, allocations: 418.5 kB / 0.8352 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.7801, allocations: 270.7 kB / 0.8355 GB, free: 0.5586 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009608/0.7897, allocations: 6.318 MB / 0.8416 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006841/0.7904, allocations: 0.9994 MB / 0.8426 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004966/0.7909, allocations: 153.8 kB / 0.8428 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000493/0.7914, allocations: 379.3 kB / 0.8431 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of SimCode: time 8.41e-07/0.7914, allocations: 4 kB / 0.8431 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07012/0.8615, allocations: 26.31 MB / 0.8688 GB, free: 0.9922 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.69, allocations: 8.047 kB / 0.8688 GB, free: 0.9844 MB / 0.6231 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_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: 17.355987356975675]