Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001325/0.001325, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2385/0.2385, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002317/0.002317, allocations: 75.62 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1255, allocations: 62.45 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume): time 0.04172/0.1672, allocations: 36.5 MB / 0.5046 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2849/0.4522, allocations: 16.75 MB / 0.521 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008436/0.4531, allocations: 15.38 kB / 0.521 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.4544, allocations: 427.4 kB / 0.5214 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01379/0.4682, allocations: 4.025 MB / 0.5253 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009357/0.4776, allocations: 3.149 MB / 0.5284 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002562/0.4802, allocations: 1.803 MB / 0.5301 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008661/0.4811, allocations: 0.5415 MB / 0.5307 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001561/0.4826, allocations: 0.7464 MB / 0.5314 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008098/0.4834, allocations: 0.5842 MB / 0.532 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.4836, allocations: 70.97 kB / 0.532 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01669/0.5003, allocations: 7.305 MB / 0.5392 GB, free: 5.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005558/0.5009, allocations: 243.3 kB / 0.5394 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007446/0.5017, allocations: 428.9 kB / 0.5398 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0148/0.5165, allocations: 5.057 MB / 0.5448 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.892e-06/0.5165, allocations: 0 / 0.5448 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5165, allocations: 0 / 0.5448 GB, free: 1.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.5165, allocations: 0 / 0.5448 GB, free: 1.926 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.005174/0.5217, allocations: 1.614 MB / 0.5463 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.5218, allocations: 9.094 kB / 0.5463 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000151/0.522, allocations: 111.9 kB / 0.5464 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002833/0.5248, allocations: 360.8 kB / 0.5468 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009777/0.5258, allocations: 0.5246 MB / 0.5473 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.526, allocations: 113 kB / 0.5474 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.5261, allocations: 65.91 kB / 0.5475 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002954/0.529, allocations: 1.134 MB / 0.5486 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.5291, allocations: 3.938 kB / 0.5486 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.771e-05/0.5292, allocations: 32 kB / 0.5486 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.199e-05/0.5293, allocations: 33.3 kB / 0.5486 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00281/0.5321, allocations: 1.051 MB / 0.5497 GB, free: 14.02 MB / 398.1 MB 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.007728/0.5398, allocations: 5.023 MB / 0.5546 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002766/0.5426, allocations: 0.9165 MB / 0.5555 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007605/0.5434, allocations: 381.9 kB / 0.5558 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05553/0.5989, allocations: 26.77 MB / 0.582 GB, free: 9.195 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/0.599, allocations: 39 kB / 0.582 GB, free: 9.148 MB / 430.1 MB Notification: Performance of pre-optimization done (n=47): time 2.776e-06/0.599, allocations: 0 / 0.582 GB, free: 9.148 MB / 430.1 MB Notification: Performance of matching and sorting (n=47): time 0.007075/0.6061, allocations: 1.973 MB / 0.584 GB, free: 7.125 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.474e-05/0.6062, allocations: 115.2 kB / 0.5841 GB, free: 6.988 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000859/0.6071, allocations: 0.5925 MB / 0.5846 GB, free: 6.387 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.678e-05/0.6072, allocations: 37.7 kB / 0.5847 GB, free: 6.344 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.6075, allocations: 325.9 kB / 0.585 GB, free: 6.023 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.6077, allocations: 153 kB / 0.5851 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002315/0.6079, allocations: 130.2 kB / 0.5853 GB, free: 5.742 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.6081, allocations: 370.8 kB / 0.5856 GB, free: 5.371 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007124/0.6088, allocations: 325 kB / 0.5859 GB, free: 5.055 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000878/0.6097, allocations: 493.6 kB / 0.5864 GB, free: 4.508 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.6112, allocations: 0.7396 MB / 0.5871 GB, free: 3.707 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.6112, allocations: 0 / 0.5871 GB, free: 3.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002345/0.6136, allocations: 1.051 MB / 0.5881 GB, free: 2.641 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.6136, allocations: 11.94 kB / 0.5882 GB, free: 2.629 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.6136, allocations: 4 kB / 0.5882 GB, free: 2.625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.6148, allocations: 425.8 kB / 0.5886 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.6153, allocations: 111.8 kB / 0.5887 GB, free: 2.094 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.6173, allocations: 1.639 MB / 0.5903 GB, free: 412 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/0.618, allocations: 95.23 kB / 0.5904 GB, free: 316 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-05/0.6181, allocations: 31.98 kB / 0.5904 GB, free: 284 kB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 9 (Volume.regularFlow[1],Volume.regularFlow[2],Sink.medium.phase,FlowSource.medium.phase,Volume.inFlow[2],Volume.inFlow[1],Volume.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004129/0.6185, allocations: 225.6 kB / 0.5906 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.6187, allocations: 63.3 kB / 0.5907 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004742/0.6234, allocations: 3.263 MB / 0.5939 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.369e-05/0.6235, allocations: 39.94 kB / 0.5939 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.6235, allocations: 0 / 0.5939 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.6235, allocations: 3.984 kB / 0.5939 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.6256, allocations: 1.57 MB / 0.5954 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.6256, allocations: 0 / 0.5954 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.6259, allocations: 79.88 kB / 0.5955 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001511/0.6275, allocations: 0.878 MB / 0.5964 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.041e-05/0.6275, allocations: 16 kB / 0.5964 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002864/0.6304, allocations: 2.291 MB / 0.5986 GB, free: 7.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6304, allocations: 3.938 kB / 0.5986 GB, free: 7.746 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003596/0.634, allocations: 2.265 MB / 0.6008 GB, free: 5.457 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005098/0.6345, allocations: 298.9 kB / 0.6011 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.6347, allocations: 31.78 kB / 0.6011 GB, free: 5.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005023/0.6352, allocations: 39.95 kB / 0.6012 GB, free: 5.074 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.6354, allocations: 68.47 kB / 0.6012 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.305e-05/0.6354, allocations: 23.92 kB / 0.6013 GB, free: 4.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00069/0.6361, allocations: 0.5146 MB / 0.6018 GB, free: 4.465 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6361, allocations: 0 / 0.6018 GB, free: 4.465 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003809/0.64, allocations: 1.167 MB / 0.6029 GB, free: 3.297 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009499/0.6495, allocations: 3.821 MB / 0.6066 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003233/0.6527, allocations: 1.204 MB / 0.6078 GB, free: 14.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.6528, allocations: 4 kB / 0.6078 GB, free: 14.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.6543, allocations: 0.877 MB / 0.6087 GB, free: 13.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/0.6564, allocations: 377.8 kB / 0.609 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/0.6725, allocations: 8.678 MB / 0.6175 GB, free: 4.242 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008295/0.6734, allocations: 1.157 MB / 0.6186 GB, free: 3.055 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008643/0.6743, allocations: 356 kB / 0.619 GB, free: 2.707 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005143/0.6748, allocations: 415.2 kB / 0.6194 GB, free: 2.301 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6748, allocations: 0 / 0.6194 GB, free: 2.301 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1184/0.7932, allocations: 61.23 MB / 0.6792 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.81/15.61, allocations: 12.5 kB / 0.6792 GB, free: 5.285 MB / 0.5137 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1)