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.007391/0.007391, allocations: 102.8 kB / 15.74 MB, free: 5.551 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.001575/0.001575, allocations: 194.3 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.278/1.278, 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.6592/0.6592, allocations: 91.18 MB / 381.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 83.86 kB / 0.5164 GB, free: 4.566 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3079, allocations: 67.68 MB / 0.5825 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.Utilities.Tests.Piston): time 0.5261/0.834, allocations: 225.9 MB / 0.8031 GB, free: 136 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03836/0.8724, allocations: 43.12 MB / 0.8452 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003805/0.8763, allocations: 73.5 kB / 0.8453 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.006725/0.883, allocations: 2.786 MB / 0.848 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.009601/0.8927, allocations: 3.342 MB / 0.8513 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02274/0.9155, allocations: 7.939 MB / 0.8591 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007913/0.9234, allocations: 5.55 MB / 0.8645 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003061/0.9265, allocations: 1.846 MB / 0.8663 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008156/0.9346, allocations: 3.872 MB / 0.8701 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00393/0.9386, allocations: 2.39 MB / 0.8724 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001395/0.94, allocations: 488 kB / 0.8729 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.022/0.962, allocations: 9.585 MB / 0.8822 GB, free: 5.098 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001755/0.9638, allocations: 0.9854 MB / 0.8832 GB, free: 4.109 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.004067/0.9679, allocations: 2.253 MB / 0.8854 GB, free: 1.848 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0243/0.9922, allocations: 11 MB / 0.8961 GB, free: 6.816 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.9923, allocations: 0 / 0.8961 GB, free: 6.816 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9923, allocations: 0 / 0.8961 GB, free: 6.816 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001759/0.9925, allocations: 0 / 0.8961 GB, free: 6.816 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.01395/1.006, allocations: 5.432 MB / 0.9014 GB, free: 1.301 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/1.006, allocations: 12.03 kB / 0.9014 GB, free: 1.289 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007041/1.007, allocations: 468.5 kB / 0.9019 GB, free: 0.8203 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003582/1.011, allocations: 0.7745 MB / 0.9026 GB, free: 44 kB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003212/1.014, allocations: 1.957 MB / 0.9046 GB, free: 14.03 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/1.014, allocations: 258.9 kB / 0.9048 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006077/1.015, allocations: 371.9 kB / 0.9052 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008409/1.023, allocations: 4.328 MB / 0.9094 GB, free: 8.98 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.138e-05/1.023, allocations: 11.88 kB / 0.9094 GB, free: 8.969 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000285/1.024, allocations: 140 kB / 0.9095 GB, free: 8.832 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.623e-05/1.024, allocations: 118.2 kB / 0.9096 GB, free: 8.715 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007605/1.031, allocations: 3.697 MB / 0.9132 GB, free: 5.008 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.02327/1.055, allocations: 24.12 MB / 0.9368 GB, free: 10.2 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005499/1.06, allocations: 2.841 MB / 0.9396 GB, free: 7.289 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002079/1.062, allocations: 1.248 MB / 0.9408 GB, free: 6.039 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03189/1.094, allocations: 16.23 MB / 0.9566 GB, free: 3.898 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004605/1.099, allocations: 1.545 MB / 0.9581 GB, free: 2.344 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=201): time 4.529e-06/1.099, allocations: 4 kB / 0.9582 GB, free: 2.34 MB / 0.7012 GB Notification: Performance of matching and sorting (n=205): time 0.02087/1.12, allocations: 8.297 MB / 0.9663 GB, free: 9.887 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/1.12, allocations: 77.34 kB / 0.9663 GB, free: 9.797 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/1.122, allocations: 1.238 MB / 0.9675 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001836/1.122, allocations: 57.7 kB / 0.9676 GB, free: 8.484 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001112/1.123, allocations: 1.339 MB / 0.9689 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000664/1.124, allocations: 0.7281 MB / 0.9696 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000741/1.124, allocations: 395.5 kB / 0.97 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001002/1.125, allocations: 309.1 kB / 0.9703 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001829/1.126, allocations: 0.8941 MB / 0.9712 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002107/1.128, allocations: 1.222 MB / 0.9724 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004053/1.133, allocations: 2.28 MB / 0.9746 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/1.133, allocations: 8 kB / 0.9746 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006385/1.139, allocations: 3.129 MB / 0.9776 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.809e-05/1.139, allocations: 33.7 kB / 0.9777 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/1.139, allocations: 8.094 kB / 0.9777 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00216/1.141, allocations: 0.6945 MB / 0.9784 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/1.143, allocations: 415.4 kB / 0.9788 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/1.155, allocations: 7.581 MB / 0.9862 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/1.157, allocations: 88 kB / 0.9862 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00036/1.157, allocations: 91.97 kB / 0.9863 GB, free: 4.816 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.00156/1.159, allocations: 0.6703 MB / 0.987 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005563/1.16, allocations: 190.8 kB / 0.9872 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/1.171, allocations: 7.755 MB / 0.9947 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.518e-05/1.171, allocations: 95.86 kB / 0.9948 GB, free: 12 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.369e-05/1.171, allocations: 8 kB / 0.9948 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.111e-05/1.171, allocations: 15.95 kB / 0.9949 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/1.188, allocations: 12.1 MB / 1.007 GB, free: 15.67 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/1.188, allocations: 0 / 1.007 GB, free: 15.67 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001493/1.19, allocations: 339.5 kB / 1.007 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002745/1.192, allocations: 1.315 MB / 1.008 GB, free: 14.01 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002619/1.193, allocations: 71.89 kB / 1.008 GB, free: 13.94 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009994/1.203, allocations: 7.478 MB / 1.016 GB, free: 6.266 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/1.203, allocations: 0 / 1.016 GB, free: 6.266 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2791/1.482, allocations: 7.522 MB / 1.023 GB, free: 316.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/1.483, allocations: 0.6378 MB / 1.024 GB, free: 316.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006535/1.484, allocations: 45.59 kB / 1.024 GB, free: 316.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/1.486, allocations: 95.08 kB / 1.024 GB, free: 316.5 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006069/1.486, allocations: 191 kB / 1.024 GB, free: 316.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002118/1.487, allocations: 79.42 kB / 1.024 GB, free: 316.5 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001066/1.488, allocations: 0.7959 MB / 1.025 GB, free: 316.4 MB / 0.7637 GB Notification: Performance of sort global known variables: time 9.12e-07/1.488, allocations: 0 / 1.025 GB, free: 316.4 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005327/1.493, allocations: 1.804 MB / 1.027 GB, free: 316.4 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.01495/1.508, allocations: 9.416 MB / 1.036 GB, free: 312.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.005478/1.514, allocations: 3.539 MB / 1.039 GB, free: 311.3 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.514, allocations: 0 / 1.039 GB, free: 311.3 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.003401/1.517, allocations: 2.687 MB / 1.042 GB, free: 310 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003535/1.521, allocations: 0.7794 MB / 1.043 GB, free: 309.8 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03025/1.551, allocations: 21.96 MB / 1.064 GB, free: 296.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001409/1.552, allocations: 2.291 MB / 1.066 GB, free: 294 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001463/1.554, allocations: 0.854 MB / 1.067 GB, free: 293.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/1.555, allocations: 1.577 MB / 1.069 GB, free: 291.5 MB / 0.7637 GB Notification: Performance of SimCode: time 7.51e-07/1.555, allocations: 0 / 1.069 GB, free: 291.5 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.846/4.402, allocations: 111.1 MB / 1.177 GB, free: 180.9 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.1/24.5, allocations: 7.141 kB / 1.177 GB, free: 180.9 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)