Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",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.001304/0.001304, allocations: 108 kB / 15.61 MB, free: 152 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.001385/0.001385, allocations: 197.9 kB / 16.53 MB, free: 6.664 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.454/1.454, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7296/0.7296, allocations: 93.72 MB / 384.1 MB, free: 6.969 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 84.7 kB / 463.5 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1308, allocations: 68.27 MB / 0.5193 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.0705/0.2013, allocations: 65.09 MB / 0.5829 GB, free: 5.582 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2785/0.4799, allocations: 17.6 MB / 0.6001 GB, free: 5.82 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002432/0.4824, allocations: 79.81 kB / 0.6001 GB, free: 5.82 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003012/0.4855, allocations: 1.194 MB / 0.6013 GB, free: 5.789 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008641/0.4941, allocations: 2.809 MB / 0.6041 GB, free: 5.672 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005267/0.4994, allocations: 1.542 MB / 0.6056 GB, free: 5.633 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.006138/0.5056, allocations: 3.871 MB / 0.6093 GB, free: 5.512 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00112/0.5068, allocations: 0.6215 MB / 0.6099 GB, free: 5.348 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003711/0.5105, allocations: 1.592 MB / 0.6115 GB, free: 5 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002604/0.5131, allocations: 1.525 MB / 0.613 GB, free: 4.648 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000589/0.5137, allocations: 191.7 kB / 0.6132 GB, free: 4.648 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006816/0.5205, allocations: 1.678 MB / 0.6148 GB, free: 4.516 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004501/0.521, allocations: 498.4 kB / 0.6153 GB, free: 4.406 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001871/0.5229, allocations: 1.258 MB / 0.6165 GB, free: 4.004 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007895/0.5308, allocations: 3.735 MB / 0.6202 GB, free: 3.402 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5308, allocations: 0.625 kB / 0.6202 GB, free: 3.402 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.5308, allocations: 0 / 0.6202 GB, free: 3.402 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.403e-05/0.5309, allocations: 0.5 kB / 0.6202 GB, free: 3.402 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.005979/0.5369, allocations: 2.986 MB / 0.6231 GB, free: 18 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.5369, allocations: 9.531 kB / 0.6231 GB, free: 18 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002686/0.5372, allocations: 265.3 kB / 0.6233 GB, free: 17.95 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005192/0.5377, allocations: 280 kB / 0.6236 GB, free: 17.81 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00195/0.5397, allocations: 1.362 MB / 0.6249 GB, free: 17.3 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.5398, allocations: 142.8 kB / 0.6251 GB, free: 17.29 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002396/0.54, allocations: 190.4 kB / 0.6253 GB, free: 17.29 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003116/0.5432, allocations: 2.168 MB / 0.6274 GB, free: 17.12 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.707e-05/0.5432, allocations: 0.9375 kB / 0.6274 GB, free: 17.12 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.5434, allocations: 78.69 kB / 0.6274 GB, free: 17.12 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-05/0.5434, allocations: 45.47 kB / 0.6275 GB, free: 17.12 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003308/0.5467, allocations: 2.276 MB / 0.6297 GB, free: 16.84 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01155/0.5583, allocations: 9.018 MB / 0.6385 GB, free: 9.113 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003032/0.5614, allocations: 1.919 MB / 0.6404 GB, free: 8.125 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.5629, allocations: 0.9838 MB / 0.6414 GB, free: 7.617 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008893/0.5718, allocations: 6.776 MB / 0.648 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00172/0.5736, allocations: 0.9549 MB / 0.6489 GB, free: 332 kB / 478.1 MB Notification: Performance of pre-optimization done (n=200): time 7.895e-06/0.5736, allocations: 0 / 0.6489 GB, free: 332 kB / 478.1 MB Notification: Performance of matching and sorting (n=200): time 0.006137/0.5797, allocations: 3.005 MB / 0.6518 GB, free: 14.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.5798, allocations: 83.53 kB / 0.6519 GB, free: 14.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/0.5814, allocations: 1.231 MB / 0.6531 GB, free: 13.94 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.5816, allocations: 58.58 kB / 0.6532 GB, free: 13.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007908/0.5824, allocations: 0.8652 MB / 0.654 GB, free: 13.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006563/0.583, allocations: 0.6586 MB / 0.6547 GB, free: 12.54 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000484/0.5835, allocations: 329.4 kB / 0.655 GB, free: 12.36 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5837, allocations: 303.6 kB / 0.6553 GB, free: 12.06 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.5849, allocations: 0.6517 MB / 0.6559 GB, free: 11.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.5865, allocations: 0.8902 MB / 0.6568 GB, free: 11.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002896/0.5894, allocations: 1.663 MB / 0.6584 GB, free: 10.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.5894, allocations: 6.438 kB / 0.6584 GB, free: 10.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00436/0.5938, allocations: 2.151 MB / 0.6605 GB, free: 8.906 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/0.5938, allocations: 37.7 kB / 0.6605 GB, free: 8.863 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.5939, allocations: 4 kB / 0.6605 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005694/0.5944, allocations: 158.5 kB / 0.6607 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.5958, allocations: 395.4 kB / 0.6611 GB, free: 8.309 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004718/0.6005, allocations: 4.849 MB / 0.6658 GB, free: 3.051 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.602, allocations: 162.2 kB / 0.666 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002243/0.6023, allocations: 91.91 kB / 0.6661 GB, free: 2.801 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * 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.0008643/0.6031, allocations: 371.7 kB / 0.6664 GB, free: 2.43 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005048/0.6036, allocations: 193.6 kB / 0.6666 GB, free: 2.238 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006507/0.6102, allocations: 3.426 MB / 0.6699 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.6102, allocations: 24 kB / 0.67 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.6102, allocations: 0 / 0.67 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-05/0.6102, allocations: 11.95 kB / 0.67 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009706/0.62, allocations: 4.797 MB / 0.6747 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.77e-05/0.62, allocations: 4 kB / 0.6747 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/0.6218, allocations: 399.5 kB / 0.675 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005788/0.6224, allocations: 170.5 kB / 0.6752 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002342/0.6226, allocations: 71.95 kB / 0.6753 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004828/0.6275, allocations: 4.85 MB / 0.68 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.6275, allocations: 0 / 0.68 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007077/0.6346, allocations: 3.32 MB / 0.6832 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.6358, allocations: 0.5211 MB / 0.6838 GB, free: 204 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003088/0.6361, allocations: 51.84 kB / 0.6838 GB, free: 152 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008659/0.637, allocations: 59.97 kB / 0.6839 GB, free: 92 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003537/0.6374, allocations: 181.7 kB / 0.684 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/0.6376, allocations: 83.97 kB / 0.6841 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00129/0.6389, allocations: 0.8626 MB / 0.685 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6389, allocations: 0 / 0.685 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002559/0.6414, allocations: 0.85 MB / 0.6858 GB, free: 14.12 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.008095/0.6495, allocations: 4.622 MB / 0.6903 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00751/0.6571, allocations: 2.352 MB / 0.6926 GB, free: 7.129 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.6571, allocations: 4.188 kB / 0.6926 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002341/0.6595, allocations: 1.448 MB / 0.694 GB, free: 5.637 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003238/0.6627, allocations: 0.6478 MB / 0.6947 GB, free: 5.016 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02762/0.6903, allocations: 16.34 MB / 0.7106 GB, free: 3.516 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.6916, allocations: 1.471 MB / 0.712 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001834/0.6935, allocations: 0.505 MB / 0.7125 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/0.695, allocations: 0.9952 MB / 0.7135 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of SimCode: time 8.11e-07/0.695, allocations: 0 / 0.7135 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.127/0.822, allocations: 59.6 MB / 0.7717 GB, free: 5.336 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/13.18, allocations: 11.98 kB / 0.7717 GB, free: 5.324 MB / 0.5919 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.csv --start-time 0 --stop-time 20 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches