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.001605/0.001605, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001928/0.001929, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2407/0.2407, allocations: 46.12 MB / 344.2 MB, free: 11.52 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.002271/0.002271, allocations: 76.66 kB / 417.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1324, allocations: 62.45 MB / 480.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume): time 0.04401/0.1765, allocations: 36.5 MB / 0.5046 GB, free: 480 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3075/0.4839, allocations: 16.75 MB / 0.521 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009471/0.485, allocations: 12.94 kB / 0.521 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001542/0.4866, allocations: 425.7 kB / 0.5214 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01673/0.5033, allocations: 4.029 MB / 0.5253 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01116/0.5145, allocations: 3.162 MB / 0.5284 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002991/0.5175, allocations: 1.798 MB / 0.5302 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009881/0.5185, allocations: 0.5313 MB / 0.5307 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.5204, allocations: 0.7603 MB / 0.5314 GB, free: 8.805 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.5216, allocations: 0.5729 MB / 0.532 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002021/0.5219, allocations: 71.88 kB / 0.532 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01876/0.5406, allocations: 7.302 MB / 0.5392 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006216/0.5413, allocations: 251.2 kB / 0.5394 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008169/0.5421, allocations: 418.8 kB / 0.5398 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01445/0.5566, allocations: 5.057 MB / 0.5448 GB, free: 1.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.5566, allocations: 0 / 0.5448 GB, free: 1.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.5567, allocations: 4 kB / 0.5448 GB, free: 1.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.744e-05/0.5567, allocations: 0 / 0.5448 GB, free: 1.902 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.00496/0.5616, allocations: 1.615 MB / 0.5463 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.5617, allocations: 12.52 kB / 0.5463 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.5618, allocations: 103.1 kB / 0.5464 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002847/0.5647, allocations: 368.1 kB / 0.5468 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009666/0.5657, allocations: 0.522 MB / 0.5473 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/0.5658, allocations: 116.2 kB / 0.5474 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.566, allocations: 56.23 kB / 0.5475 GB, free: 0 / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002852/0.5688, allocations: 1.14 MB / 0.5486 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.5689, allocations: 7.938 kB / 0.5486 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.625e-05/0.5689, allocations: 24 kB / 0.5486 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.693e-05/0.569, allocations: 33.3 kB / 0.5486 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002888/0.5719, allocations: 1.055 MB / 0.5497 GB, free: 14 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.007955/0.5799, allocations: 5.018 MB / 0.5546 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003062/0.583, allocations: 0.9214 MB / 0.5555 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008106/0.5838, allocations: 377.9 kB / 0.5558 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05722/0.641, allocations: 26.77 MB / 0.582 GB, free: 9.188 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.755e-05/0.6411, allocations: 42.98 kB / 0.582 GB, free: 9.137 MB / 430.1 MB Notification: Performance of pre-optimization done (n=47): time 3.657e-06/0.6412, allocations: 0 / 0.582 GB, free: 9.137 MB / 430.1 MB Notification: Performance of matching and sorting (n=47): time 0.007736/0.6489, allocations: 1.973 MB / 0.5839 GB, free: 7.113 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.89e-05/0.649, allocations: 111.2 kB / 0.5841 GB, free: 6.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/0.6501, allocations: 0.5964 MB / 0.5846 GB, free: 6.375 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.561e-05/0.6502, allocations: 33.7 kB / 0.5847 GB, free: 6.336 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/0.6506, allocations: 326.9 kB / 0.585 GB, free: 6.016 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.6508, allocations: 153.1 kB / 0.5851 GB, free: 5.867 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.6511, allocations: 130.2 kB / 0.5852 GB, free: 5.734 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.6514, allocations: 374.8 kB / 0.5856 GB, free: 5.359 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007592/0.6521, allocations: 325.1 kB / 0.5859 GB, free: 5.043 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009194/0.6531, allocations: 489.6 kB / 0.5864 GB, free: 4.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.6547, allocations: 0.7357 MB / 0.5871 GB, free: 3.703 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-06/0.6547, allocations: 4 kB / 0.5871 GB, free: 3.699 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002561/0.6573, allocations: 1.055 MB / 0.5881 GB, free: 2.629 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.6573, allocations: 4 kB / 0.5881 GB, free: 2.625 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.6573, allocations: 11.94 kB / 0.5882 GB, free: 2.613 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.6586, allocations: 425.7 kB / 0.5886 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004723/0.6591, allocations: 119.9 kB / 0.5887 GB, free: 2.074 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002195/0.6613, allocations: 1.631 MB / 0.5903 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008133/0.6622, allocations: 91.12 kB / 0.5904 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.673e-05/0.6623, allocations: 39.97 kB / 0.5904 GB, free: 268 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.0005497/0.6628, allocations: 228.6 kB / 0.5906 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/0.6631, allocations: 67.23 kB / 0.5907 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005282/0.6684, allocations: 3.256 MB / 0.5939 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.844e-05/0.6685, allocations: 51.92 kB / 0.5939 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.6685, allocations: 0 / 0.5939 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.6685, allocations: 3.984 kB / 0.5939 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.6708, allocations: 1.561 MB / 0.5954 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.6708, allocations: 0 / 0.5954 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/0.6712, allocations: 83.86 kB / 0.5955 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001607/0.6728, allocations: 0.8664 MB / 0.5964 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-05/0.6729, allocations: 15.92 kB / 0.5964 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002835/0.6757, allocations: 2.295 MB / 0.5986 GB, free: 7.734 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.6757, allocations: 3.938 kB / 0.5986 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003805/0.6795, allocations: 2.273 MB / 0.6008 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000532/0.6801, allocations: 295 kB / 0.6011 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.6803, allocations: 31.77 kB / 0.6011 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005953/0.6809, allocations: 43.89 kB / 0.6012 GB, free: 5.051 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.6811, allocations: 56.48 kB / 0.6012 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.346e-05/0.6812, allocations: 31.92 kB / 0.6013 GB, free: 4.961 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007799/0.6819, allocations: 0.5185 MB / 0.6018 GB, free: 4.441 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.682, allocations: 0 / 0.6018 GB, free: 4.441 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004237/0.6862, allocations: 1.167 MB / 0.6029 GB, free: 3.273 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.01128/0.6975, allocations: 3.807 MB / 0.6066 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003717/0.7013, allocations: 1.208 MB / 0.6078 GB, free: 14.35 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.7013, allocations: 0 / 0.6078 GB, free: 14.35 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001762/0.7031, allocations: 0.8807 MB / 0.6087 GB, free: 13.47 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/0.7054, allocations: 390.3 kB / 0.609 GB, free: 13.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01799/0.7234, allocations: 8.666 MB / 0.6175 GB, free: 4.227 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.7245, allocations: 1.157 MB / 0.6186 GB, free: 3.039 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009666/0.7254, allocations: 351.7 kB / 0.619 GB, free: 2.695 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.7261, allocations: 415.3 kB / 0.6194 GB, free: 2.289 MB / 462.1 MB Notification: Performance of SimCode: time 2.014e-06/0.7261, allocations: 0 / 0.6194 GB, free: 2.289 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1196/0.8457, allocations: 61.23 MB / 0.6792 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.62/15.47, allocations: 16.19 kB / 0.6792 GB, free: 5.273 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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)