Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_trunk_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.001326/0.001326, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2019/0.2019, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3138, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume): time 0.03471/0.3486, allocations: 36.49 MB / 0.5661 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01867/0.3673, allocations: 16.77 MB / 0.5825 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007/0.368, allocations: 19.88 kB / 0.5825 GB, free: 12.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.3692, allocations: 425.4 kB / 0.5829 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01105/0.3803, allocations: 4.051 MB / 0.5869 GB, free: 7.855 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007958/0.3882, allocations: 3.151 MB / 0.59 GB, free: 4.711 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002217/0.3905, allocations: 1.806 MB / 0.5917 GB, free: 2.902 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008858/0.3914, allocations: 0.5313 MB / 0.5923 GB, free: 2.359 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001616/0.393, allocations: 0.7706 MB / 0.593 GB, free: 1.586 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008329/0.3939, allocations: 0.5838 MB / 0.5936 GB, free: 1 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.394, allocations: 72 kB / 0.5937 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01312/0.4071, allocations: 7.469 MB / 0.6009 GB, free: 9.449 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003841/0.4076, allocations: 251.3 kB / 0.6012 GB, free: 9.203 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005295/0.4081, allocations: 418.2 kB / 0.6016 GB, free: 8.793 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.4186, allocations: 5.07 MB / 0.6065 GB, free: 3.711 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4186, allocations: 4 kB / 0.6065 GB, free: 3.707 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4186, allocations: 0 / 0.6065 GB, free: 3.707 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.4186, allocations: 0 / 0.6065 GB, free: 3.707 MB / 462.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.003909/0.4226, allocations: 1.652 MB / 0.6082 GB, free: 2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.4226, allocations: 12.03 kB / 0.6082 GB, free: 1.988 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001381/0.4228, allocations: 114.6 kB / 0.6083 GB, free: 1.867 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002845/0.4256, allocations: 360.1 kB / 0.6086 GB, free: 1.516 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009278/0.4266, allocations: 0.5526 MB / 0.6092 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.4267, allocations: 117.3 kB / 0.6093 GB, free: 0.793 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.554e-05/0.4268, allocations: 55.94 kB / 0.6093 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002539/0.4293, allocations: 1.13 MB / 0.6104 GB, free: 15.55 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.4294, allocations: 3.938 kB / 0.6104 GB, free: 15.55 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.723e-05/0.4294, allocations: 24 kB / 0.6105 GB, free: 15.53 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.316e-05/0.4295, allocations: 33.3 kB / 0.6105 GB, free: 15.5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002624/0.4321, allocations: 1.059 MB / 0.6115 GB, free: 14.44 MB / 478.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.006433/0.4386, allocations: 5.005 MB / 0.6164 GB, free: 9.055 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002648/0.4412, allocations: 0.9185 MB / 0.6173 GB, free: 8.129 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007118/0.442, allocations: 385.9 kB / 0.6177 GB, free: 7.75 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04983/0.4918, allocations: 26.89 MB / 0.6439 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/0.4919, allocations: 39 kB / 0.644 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 2.444e-06/0.4919, allocations: 0 / 0.644 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of matching and sorting (n=47): time 0.006678/0.4986, allocations: 1.978 MB / 0.6459 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.4987, allocations: 115.2 kB / 0.646 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006746/0.4994, allocations: 0.5926 MB / 0.6466 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.4994, allocations: 37.64 kB / 0.6466 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.4996, allocations: 324.3 kB / 0.6469 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.4998, allocations: 166.6 kB / 0.6471 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.5, allocations: 138.3 kB / 0.6472 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.5001, allocations: 366.8 kB / 0.6476 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000662/0.5008, allocations: 325.1 kB / 0.6479 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007945/0.5016, allocations: 494.7 kB / 0.6483 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.503, allocations: 0.7357 MB / 0.6491 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.503, allocations: 0 / 0.6491 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002165/0.5052, allocations: 1.052 MB / 0.6501 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.5052, allocations: 14.12 kB / 0.6501 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.5052, allocations: 4 kB / 0.6501 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.5064, allocations: 425.5 kB / 0.6505 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004384/0.5068, allocations: 119.8 kB / 0.6506 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.5086, allocations: 1.624 MB / 0.6522 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006184/0.5092, allocations: 99.3 kB / 0.6523 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.887e-05/0.5093, allocations: 27.98 kB / 0.6523 GB, free: 0.5195 MB / 0.4981 GB 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.0003574/0.5096, allocations: 237.7 kB / 0.6526 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.5098, allocations: 67.58 kB / 0.6526 GB, free: 216 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004062/0.5139, allocations: 3.244 MB / 0.6558 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.507e-05/0.5139, allocations: 47.92 kB / 0.6558 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.5139, allocations: 0 / 0.6558 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.514, allocations: 3.984 kB / 0.6558 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001657/0.5156, allocations: 1.569 MB / 0.6574 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.5157, allocations: 4 kB / 0.6574 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003514/0.516, allocations: 87.88 kB / 0.6575 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.5175, allocations: 0.8698 MB / 0.6583 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.488e-05/0.5175, allocations: 12 kB / 0.6583 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/0.5202, allocations: 2.291 MB / 0.6606 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.5202, allocations: 8.016 kB / 0.6606 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.5236, allocations: 2.278 MB / 0.6628 GB, free: 5.652 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005937/0.5243, allocations: 311.5 kB / 0.6631 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/0.5244, allocations: 27.84 kB / 0.6631 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000517/0.525, allocations: 39.95 kB / 0.6632 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.5251, allocations: 64.47 kB / 0.6632 GB, free: 5.199 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.987e-05/0.5252, allocations: 23.98 kB / 0.6632 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006123/0.5258, allocations: 0.5107 MB / 0.6637 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.7e-07/0.5258, allocations: 0 / 0.6637 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003315/0.5291, allocations: 1.185 MB / 0.6649 GB, free: 3.473 MB / 0.5137 GB 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.008316/0.5375, allocations: 3.818 MB / 0.6686 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002508/0.54, allocations: 1.13 MB / 0.6697 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.5401, allocations: 4.25 kB / 0.6697 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.5415, allocations: 0.8806 MB / 0.6706 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.5434, allocations: 384 kB / 0.671 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.5569, allocations: 8.458 MB / 0.6792 GB, free: 4.574 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006099/0.5576, allocations: 1.146 MB / 0.6803 GB, free: 3.395 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006868/0.5583, allocations: 363.2 kB / 0.6807 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.5587, allocations: 415.2 kB / 0.6811 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of SimCode: time 8.52e-07/0.5587, allocations: 0 / 0.6811 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3289/0.8876, allocations: 61.37 MB / 0.741 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.71/16.59, allocations: 2.062 kB / 0.741 GB, free: 148.5 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestVolume/TestVolume.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches