Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.Piston.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.Examples.Utilities.Tests.Piston,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_Utilities_Tests_Piston",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.Utilities.Tests.Piston,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_Utilities_Tests_Piston",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.005848/0.005848, allocations: 100.3 kB / 15.73 MB, free: 6.5 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.001407/0.001407, allocations: 199.9 kB / 16.68 MB, free: 6.371 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.713/0.713, allocations: 91.18 MB / 381.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 80.22 kB / 0.5164 GB, free: 9.512 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1155, allocations: 67.69 MB / 0.5825 GB, free: 5.742 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.Utilities.Tests.Piston): time 0.4646/0.5801, allocations: 225.9 MB / 0.8031 GB, free: 6.387 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.3983/0.9784, allocations: 43.12 MB / 0.8452 GB, free: 1.016 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002906/0.9814, allocations: 70.05 kB / 0.8453 GB, free: 1.016 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.006979/0.9884, allocations: 2.786 MB / 0.848 GB, free: 1.004 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.008666/0.9971, allocations: 3.347 MB / 0.8513 GB, free: 0.9688 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.02113/1.018, allocations: 7.935 MB / 0.859 GB, free: 0.9062 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008324/1.027, allocations: 5.552 MB / 0.8645 GB, free: 0.9062 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003001/1.03, allocations: 1.839 MB / 0.8663 GB, free: 16.43 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00933/1.039, allocations: 3.874 MB / 0.87 GB, free: 15.98 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004802/1.044, allocations: 2.393 MB / 0.8724 GB, free: 15.91 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001097/1.045, allocations: 484.2 kB / 0.8728 GB, free: 15.91 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02089/1.066, allocations: 9.586 MB / 0.8822 GB, free: 15.82 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001587/1.067, allocations: 0.9893 MB / 0.8832 GB, free: 15.68 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.004247/1.072, allocations: 2.256 MB / 0.8854 GB, free: 15.14 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.02263/1.094, allocations: 11 MB / 0.8961 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/1.094, allocations: 0 / 0.8961 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.673e-06/1.094, allocations: 0 / 0.8961 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001489/1.095, allocations: 0 / 0.8961 GB, free: 14.12 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 878 * Number of variables: 878 Notification: Performance of Generate backend data structure: time 0.01504/1.11, allocations: 5.426 MB / 0.9014 GB, free: 11.84 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/1.11, allocations: 9.25 kB / 0.9014 GB, free: 11.84 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007199/1.11, allocations: 467.6 kB / 0.9019 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003985/1.114, allocations: 0.7814 MB / 0.9026 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/1.118, allocations: 1.949 MB / 0.9045 GB, free: 10.54 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/1.119, allocations: 262.3 kB / 0.9048 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008278/1.119, allocations: 368.8 kB / 0.9051 GB, free: 10.51 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009654/1.129, allocations: 4.325 MB / 0.9094 GB, free: 9.32 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/1.129, allocations: 9.109 kB / 0.9094 GB, free: 9.316 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004654/1.13, allocations: 141.8 kB / 0.9095 GB, free: 9.316 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/1.13, allocations: 119 kB / 0.9096 GB, free: 9.309 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008772/1.139, allocations: 3.702 MB / 0.9132 GB, free: 8.668 MB / 0.6856 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02919/1.168, allocations: 24.13 MB / 0.9368 GB, free: 5.215 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006368/1.174, allocations: 2.838 MB / 0.9396 GB, free: 3.273 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002377/1.177, allocations: 1.244 MB / 0.9408 GB, free: 2.523 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03513/1.212, allocations: 16.23 MB / 0.9566 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004737/1.217, allocations: 1.543 MB / 0.9581 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=201): time 4.779e-06/1.217, allocations: 0 / 0.9581 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of matching and sorting (n=205): time 0.02171/1.238, allocations: 8.302 MB / 0.9662 GB, free: 9.551 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/1.238, allocations: 80.3 kB / 0.9663 GB, free: 9.465 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001951/1.24, allocations: 1.235 MB / 0.9675 GB, free: 8.539 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0002596/1.241, allocations: 66.02 kB / 0.9676 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.00112/1.242, allocations: 1.325 MB / 0.9689 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007226/1.242, allocations: 0.7335 MB / 0.9696 GB, free: 6.898 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008138/1.243, allocations: 396.9 kB / 0.97 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.28e-05/1.243, allocations: 301.1 kB / 0.9703 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/1.245, allocations: 0.9036 MB / 0.9712 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/1.247, allocations: 1.216 MB / 0.9723 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004186/1.252, allocations: 2.288 MB / 0.9746 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/1.252, allocations: 3.938 kB / 0.9746 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of matching and sorting (n=253) (initialization): time 0.007002/1.259, allocations: 3.13 MB / 0.9776 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.204e-05/1.259, allocations: 33.7 kB / 0.9777 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/1.259, allocations: 8 kB / 0.9777 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002354/1.261, allocations: 0.6982 MB / 0.9784 GB, free: 388 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/1.263, allocations: 405.5 kB / 0.9787 GB, free: 4 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/1.276, allocations: 7.582 MB / 0.9861 GB, free: 8.258 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002002/1.278, allocations: 84 kB / 0.9862 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004368/1.279, allocations: 91.97 kB / 0.9863 GB, free: 8.086 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 27 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,piston2_1.medium_right.phase,piston2_1.medium_left.phase,$whenCondition1,switch.tanValve1.outlet.state.phase,switch.tanValve.outlet.state.phase,switchConnector1.checkValve1.outlet.state.phase,switchConnector.checkValve1.outlet.state.phase,switchConnector1.checkValve.outlet.state.phase,switchConnector.checkValve.outlet.state.phase,switchConnector1.junctionRFF2_1.junctionMN.fores[2].state_forwards.phase,switchConnector.junctionRFF2_1.junctionMN.fores[2].state_forwards.phase,tanValve1.outlet.state.phase,tanValve.outlet.state.phase,flowResistance3.outlet.state.phase,flowResistance1.outlet.state.phase,flowResistance2.outlet.state.phase,flowResistance.outlet.state.phase,junctionT2_1.junctionN.outlet.state.phase,source.outlet.state.phase,switchConnector1.junctionRFF2_1.junctionMN.fores[1].state_forwards.phase,switchConnector1.junctionRFF2_1.junctionMN.rears[1].state_rearwards.phase,switchConnector.junctionRFF2_1.junctionMN.fores[1].state_forwards.phase,switchConnector.junctionRFF2_1.junctionMN.rears[1].state_rearwards.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 195 * 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): 1 system {(6,46,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001816/1.281, allocations: 0.6647 MB / 0.987 GB, free: 7.434 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007437/1.281, allocations: 198.7 kB / 0.9872 GB, free: 7.238 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01214/1.294, allocations: 7.762 MB / 0.9947 GB, free: 15.41 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.307e-05/1.294, allocations: 95.86 kB / 0.9948 GB, free: 15.31 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-05/1.294, allocations: 8 kB / 0.9948 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.468e-05/1.294, allocations: 15.89 kB / 0.9948 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/1.312, allocations: 12.1 MB / 1.007 GB, free: 3.09 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/1.312, allocations: 0 / 1.007 GB, free: 3.09 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/1.314, allocations: 347.8 kB / 1.007 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002754/1.317, allocations: 1.301 MB / 1.008 GB, free: 1.453 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000332/1.317, allocations: 71.95 kB / 1.008 GB, free: 1.383 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/1.327, allocations: 7.469 MB / 1.016 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.327, allocations: 4 kB / 1.016 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01464/1.342, allocations: 7.533 MB / 1.023 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/1.343, allocations: 0.6385 MB / 1.024 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005839/1.344, allocations: 44 kB / 1.024 GB, free: 1.422 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/1.346, allocations: 100.2 kB / 1.024 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000515/1.346, allocations: 181.7 kB / 1.024 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/1.346, allocations: 83.95 kB / 1.024 GB, free: 1.066 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001409/1.348, allocations: 0.7936 MB / 1.025 GB, free: 280 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.903e-06/1.348, allocations: 112 / 1.025 GB, free: 280 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.006653/1.355, allocations: 1.806 MB / 1.027 GB, free: 14.46 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (piston2_1.M_left,piston2_1.M_right,piston2_1.medium_left.u,piston2_1.medium_right.u,linearSpeedDependentForce.s,steamSink.x,firstOrder.y,flowResistance.m_flow,flowResistance2.m_flow,flowResistance1.m_flow,flowResistance3.m_flow) * Number of discrete variables: 49 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse44.phase,$cse44.region,$cse47.phase,$cse47.region,$whenCondition1,piston2_1.medium_left.phase,piston2_1.medium_right.phase,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 (191): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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): 1 system {(6,46,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02102/1.376, allocations: 9.42 MB / 1.036 GB, free: 5.137 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.008479/1.384, allocations: 3.544 MB / 1.039 GB, free: 1.59 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.384, allocations: 0 / 1.039 GB, free: 1.59 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.005542/1.39, allocations: 2.708 MB / 1.042 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005141/1.395, allocations: 0.7611 MB / 1.043 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04576/1.441, allocations: 21.95 MB / 1.064 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003323/1.444, allocations: 2.29 MB / 1.066 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.00228/1.446, allocations: 0.8536 MB / 1.067 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002289/1.449, allocations: 1.581 MB / 1.069 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of SimCode: time 1.373e-06/1.449, allocations: 0 / 1.069 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4787/1.927, allocations: 111.1 MB / 1.177 GB, free: 439.1 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.91/23.84, allocations: 7.891 kB / 1.177 GB, free: 439.1 MB / 0.9044 GB (rm -f ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.Piston.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.Piston.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.Piston.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.Piston.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.Piston_res.csv --start-time 0 --stop-time 15 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.015 ThermofluidStream_ThermofluidStream_Examples_Utilities_Tests_Piston.fmu > ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.Piston.pipe 2>&1)