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.008057/0.008057, allocations: 96.8 kB / 15.73 MB, free: 5.547 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.001989/0.001989, allocations: 190.1 kB / 16.67 MB, free: 5.48 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7139/0.7139, allocations: 91.19 MB / 381.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 83.88 kB / 0.5164 GB, free: 4.594 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3115, allocations: 67.68 MB / 0.5825 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.Utilities.Tests.Piston): time 0.5594/0.8709, allocations: 225.9 MB / 0.8031 GB, free: 140 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03834/0.9093, allocations: 43.12 MB / 0.8452 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003392/0.9127, allocations: 71.5 kB / 0.8453 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.007518/0.9203, allocations: 2.794 MB / 0.848 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01072/0.9311, allocations: 3.294 MB / 0.8513 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02337/0.9545, allocations: 7.905 MB / 0.859 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008267/0.9628, allocations: 5.552 MB / 0.8644 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002886/0.9657, allocations: 1.839 MB / 0.8662 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009338/0.9751, allocations: 3.836 MB / 0.8699 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004471/0.9796, allocations: 2.394 MB / 0.8723 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.00154/0.9811, allocations: 488 kB / 0.8727 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02375/1.005, allocations: 9.582 MB / 0.8821 GB, free: 5.324 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001786/1.007, allocations: 0.9931 MB / 0.8831 GB, free: 4.328 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.004114/1.011, allocations: 2.249 MB / 0.8853 GB, free: 2.07 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02676/1.038, allocations: 11 MB / 0.896 GB, free: 7.043 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/1.038, allocations: 4 kB / 0.896 GB, free: 7.039 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.813e-06/1.038, allocations: 0 / 0.896 GB, free: 7.039 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001837/1.038, allocations: 3.984 kB / 0.896 GB, free: 7.035 MB / 0.6387 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.01622/1.054, allocations: 5.428 MB / 0.9013 GB, free: 1.523 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/1.054, allocations: 12.03 kB / 0.9013 GB, free: 1.512 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008974/1.055, allocations: 460.5 kB / 0.9018 GB, free: 1.051 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004319/1.059, allocations: 0.7862 MB / 0.9025 GB, free: 268 kB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004624/1.064, allocations: 1.949 MB / 0.9044 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/1.064, allocations: 258.9 kB / 0.9047 GB, free: 14 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008502/1.065, allocations: 363.9 kB / 0.905 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01048/1.076, allocations: 4.332 MB / 0.9093 GB, free: 9.211 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.591e-05/1.076, allocations: 15.97 kB / 0.9093 GB, free: 9.195 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/1.076, allocations: 140 kB / 0.9094 GB, free: 9.059 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/1.076, allocations: 118.2 kB / 0.9095 GB, free: 8.941 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009518/1.086, allocations: 3.697 MB / 0.9131 GB, free: 5.234 MB / 0.6544 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.0315/1.117, allocations: 24.11 MB / 0.9367 GB, free: 10.44 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006377/1.124, allocations: 2.841 MB / 0.9394 GB, free: 7.527 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002477/1.126, allocations: 1.255 MB / 0.9407 GB, free: 6.27 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03457/1.161, allocations: 16.23 MB / 0.9565 GB, free: 4.133 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004391/1.165, allocations: 1.541 MB / 0.958 GB, free: 2.582 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=201): time 4.609e-06/1.165, allocations: 4 kB / 0.958 GB, free: 2.578 MB / 0.7012 GB Notification: Performance of matching and sorting (n=205): time 0.02017/1.186, allocations: 8.304 MB / 0.9661 GB, free: 10.12 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/1.186, allocations: 73.41 kB / 0.9662 GB, free: 10.04 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/1.187, allocations: 1.234 MB / 0.9674 GB, free: 8.789 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001834/1.188, allocations: 61.7 kB / 0.9675 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001237/1.189, allocations: 1.339 MB / 0.9688 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007293/1.19, allocations: 0.732 MB / 0.9695 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006813/1.19, allocations: 395.5 kB / 0.9699 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.19, allocations: 305.1 kB / 0.9702 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001869/1.192, allocations: 0.9019 MB / 0.971 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002195/1.194, allocations: 1.226 MB / 0.9722 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004266/1.199, allocations: 2.28 MB / 0.9745 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/1.199, allocations: 8 kB / 0.9745 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006755/1.206, allocations: 3.121 MB / 0.9775 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.432e-05/1.206, allocations: 37.7 kB / 0.9776 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/1.206, allocations: 16.11 kB / 0.9776 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002249/1.208, allocations: 0.6906 MB / 0.9783 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/1.21, allocations: 403.4 kB / 0.9786 GB, free: 13 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/1.223, allocations: 7.577 MB / 0.986 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/1.225, allocations: 88 kB / 0.9861 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/1.225, allocations: 95.95 kB / 0.9862 GB, free: 5.051 MB / 0.7325 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.00135/1.226, allocations: 0.6703 MB / 0.9869 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/1.227, allocations: 194.8 kB / 0.9871 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01198/1.239, allocations: 7.755 MB / 0.9946 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001057/1.239, allocations: 95.86 kB / 0.9947 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/1.239, allocations: 8 kB / 0.9947 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.119e-05/1.239, allocations: 15.95 kB / 0.9947 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01806/1.257, allocations: 12.11 MB / 1.007 GB, free: 15.89 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/1.257, allocations: 0 / 1.007 GB, free: 15.89 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/1.259, allocations: 339.5 kB / 1.007 GB, free: 15.56 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002737/1.261, allocations: 1.304 MB / 1.008 GB, free: 14.24 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003391/1.262, allocations: 71.89 kB / 1.008 GB, free: 14.17 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/1.273, allocations: 7.478 MB / 1.016 GB, free: 6.492 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/1.273, allocations: 0 / 1.016 GB, free: 6.492 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2865/1.559, allocations: 7.518 MB / 1.023 GB, free: 316.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/1.561, allocations: 0.6354 MB / 1.024 GB, free: 316.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003538/1.561, allocations: 46.56 kB / 1.024 GB, free: 316.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/1.562, allocations: 93 kB / 1.024 GB, free: 316.6 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004079/1.563, allocations: 193.6 kB / 1.024 GB, free: 316.6 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/1.563, allocations: 81.75 kB / 1.024 GB, free: 316.6 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.00102/1.564, allocations: 0.795 MB / 1.025 GB, free: 316.5 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.41e-07/1.564, allocations: 0 / 1.025 GB, free: 316.5 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004825/1.569, allocations: 1.802 MB / 1.026 GB, free: 316.5 MB / 0.7637 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.01675/1.585, allocations: 9.419 MB / 1.036 GB, free: 312.9 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00583/1.591, allocations: 3.551 MB / 1.039 GB, free: 311.4 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/1.591, allocations: 0 / 1.039 GB, free: 311.4 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.003356/1.595, allocations: 2.678 MB / 1.042 GB, free: 310.2 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/1.598, allocations: 0.7747 MB / 1.042 GB, free: 309.9 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03091/1.629, allocations: 21.96 MB / 1.064 GB, free: 296.3 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/1.631, allocations: 2.286 MB / 1.066 GB, free: 294.2 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001793/1.632, allocations: 0.8566 MB / 1.067 GB, free: 293.3 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001542/1.634, allocations: 1.577 MB / 1.069 GB, free: 291.8 MB / 0.7637 GB Notification: Performance of SimCode: time 1.062e-06/1.634, allocations: 0 / 1.069 GB, free: 291.8 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1659/1.8, allocations: 111.1 MB / 1.177 GB, free: 181.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20/21.8, allocations: 14.23 kB / 1.177 GB, free: 181.1 MB / 0.7637 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)