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.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.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",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.007865/0.007865, allocations: 97.73 kB / 15.73 MB, free: 6.043 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.001758/0.001758, allocations: 198 kB / 16.68 MB, free: 5.969 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.538/1.538, 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-main/package.mo): time 0.7278/0.7278, allocations: 91.19 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 75.88 kB / 0.5164 GB, free: 9.527 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1269, allocations: 67.69 MB / 0.5825 GB, free: 5.758 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.492/0.619, allocations: 164.4 MB / 0.743 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0167/0.6357, allocations: 12.9 MB / 0.7556 GB, free: 6.992 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008606/0.6366, allocations: 43.75 kB / 0.7556 GB, free: 6.949 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.6385, allocations: 0.5862 MB / 0.7562 GB, free: 6.359 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002705/0.6413, allocations: 0.893 MB / 0.7571 GB, free: 5.461 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002356/0.6436, allocations: 0.8097 MB / 0.7579 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001849/0.6455, allocations: 1.349 MB / 0.7592 GB, free: 3.293 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006433/0.6462, allocations: 318.9 kB / 0.7595 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009634/0.6471, allocations: 0.5562 MB / 0.76 GB, free: 2.414 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001159/0.6483, allocations: 0.6536 MB / 0.7607 GB, free: 1.758 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001826/0.6485, allocations: 76 kB / 0.7607 GB, free: 1.684 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002941/0.6515, allocations: 1.4 MB / 0.7621 GB, free: 288 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002237/0.6517, allocations: 195.1 kB / 0.7623 GB, free: 92 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007203/0.6524, allocations: 0.509 MB / 0.7628 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002859/0.6553, allocations: 1.576 MB / 0.7643 GB, free: 14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.6553, allocations: 0 / 0.7643 GB, free: 14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.372e-06/0.6553, allocations: 0 / 0.7643 GB, free: 14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.728e-05/0.6554, allocations: 0 / 0.7643 GB, free: 14 MB / 0.6075 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.002776/0.6582, allocations: 1.463 MB / 0.7658 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.6582, allocations: 8.031 kB / 0.7658 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.6583, allocations: 114.7 kB / 0.7659 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.6585, allocations: 124.7 kB / 0.766 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.6599, allocations: 0.7921 MB / 0.7668 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.832e-05/0.6599, allocations: 54 kB / 0.7668 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.6602, allocations: 68 kB / 0.7669 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.6614, allocations: 0.7314 MB / 0.7676 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.6614, allocations: 0 / 0.7676 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/0.6615, allocations: 32 kB / 0.7676 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.6615, allocations: 16.81 kB / 0.7676 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.6627, allocations: 0.6324 MB / 0.7683 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003953/0.6667, allocations: 3.106 MB / 0.7713 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.668, allocations: 0.5826 MB / 0.7719 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004126/0.6684, allocations: 263 kB / 0.7721 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002534/0.671, allocations: 2.584 MB / 0.7746 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.671, allocations: 35.12 kB / 0.7747 GB, free: 2.547 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=55): time 1.853e-06/0.671, allocations: 0 / 0.7747 GB, free: 2.547 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56): time 0.003632/0.6747, allocations: 1.798 MB / 0.7764 GB, free: 0.6562 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.6747, allocations: 55.97 kB / 0.7765 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008401/0.6756, allocations: 0.6966 MB / 0.7772 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.6756, allocations: 33.64 kB / 0.7772 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003929/0.676, allocations: 440.8 kB / 0.7776 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.6761, allocations: 210.2 kB / 0.7778 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.6763, allocations: 90.25 kB / 0.7779 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.6764, allocations: 326 kB / 0.7782 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003268/0.6768, allocations: 161.1 kB / 0.7784 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004516/0.6772, allocations: 235.2 kB / 0.7786 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007266/0.6779, allocations: 431.8 kB / 0.779 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.678, allocations: 0 / 0.779 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001295/0.6793, allocations: 0.6475 MB / 0.7796 GB, free: 13.28 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.6793, allocations: 8 kB / 0.7796 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.6793, allocations: 0 / 0.7796 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004249/0.6797, allocations: 114.2 kB / 0.7797 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004318/0.6802, allocations: 99.88 kB / 0.7798 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.6827, allocations: 2.041 MB / 0.7818 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003409/0.683, allocations: 24.08 kB / 0.7819 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.914e-05/0.6831, allocations: 24 kB / 0.7819 GB, free: 10.84 MB / 0.6231 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.0003078/0.6834, allocations: 213.6 kB / 0.7821 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002482/0.6837, allocations: 91.38 kB / 0.7822 GB, free: 10.53 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.6854, allocations: 0.8795 MB / 0.783 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.6854, allocations: 4 kB / 0.783 GB, free: 9.609 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.6854, allocations: 8 kB / 0.783 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.6854, allocations: 7.922 kB / 0.783 GB, free: 9.594 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002504/0.6879, allocations: 1.523 MB / 0.7845 GB, free: 8.004 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.6879, allocations: 0 / 0.7845 GB, free: 8.004 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003932/0.6883, allocations: 88.64 kB / 0.7846 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003607/0.6887, allocations: 120.8 kB / 0.7847 GB, free: 7.797 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.261e-05/0.6888, allocations: 19.98 kB / 0.7848 GB, free: 7.777 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002242/0.691, allocations: 2.048 MB / 0.7868 GB, free: 5.59 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.691, allocations: 0 / 0.7868 GB, free: 5.59 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.6927, allocations: 0.9884 MB / 0.7877 GB, free: 4.566 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.6931, allocations: 169.6 kB / 0.7879 GB, free: 4.383 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.6932, allocations: 12 kB / 0.7879 GB, free: 4.371 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.6935, allocations: 12 kB / 0.7879 GB, free: 4.359 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.547e-05/0.6936, allocations: 48.44 kB / 0.788 GB, free: 4.312 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.6937, allocations: 23.98 kB / 0.788 GB, free: 4.289 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000616/0.6943, allocations: 0.5069 MB / 0.7885 GB, free: 3.789 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6943, allocations: 0 / 0.7885 GB, free: 3.789 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009936/0.6953, allocations: 335.3 kB / 0.7888 GB, free: 3.461 MB / 0.6231 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.002533/0.6978, allocations: 1.908 MB / 0.7907 GB, free: 1.512 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001293/0.6991, allocations: 0.6114 MB / 0.7913 GB, free: 0.8867 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.6991, allocations: 0 / 0.7913 GB, free: 0.8867 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0007326/0.6999, allocations: 434 kB / 0.7917 GB, free: 464 kB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.7012, allocations: 279.8 kB / 0.7919 GB, free: 196 kB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00962/0.7108, allocations: 6.301 MB / 0.7981 GB, free: 9.711 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006138/0.7114, allocations: 0.9968 MB / 0.7991 GB, free: 8.688 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004643/0.7119, allocations: 149.8 kB / 0.7992 GB, free: 8.539 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005683/0.7125, allocations: 375.3 kB / 0.7996 GB, free: 8.172 MB / 0.6387 GB Notification: Performance of SimCode: time 1.012e-06/0.7125, allocations: 0 / 0.7996 GB, free: 8.172 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05661/0.7691, allocations: 25.63 MB / 0.8246 GB, free: 14.77 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/12.27, allocations: 10.03 kB / 0.8246 GB, free: 14.77 MB / 0.67 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv","/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) Reference file matches