Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009518/0.0009518, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 226.5 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008053/0.0008053, allocations: 91.94 kB / 295.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2859/0.2859, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002517, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2772, allocations: 62.96 MB / 0.516 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume): time 0.02271/0.3, allocations: 34.15 MB / 0.5493 GB, free: 12.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.3146, allocations: 15.7 MB / 0.5646 GB, free: 1.707 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000776/0.3154, allocations: 16.72 kB / 0.5647 GB, free: 1.699 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.3164, allocations: 361.2 kB / 0.565 GB, free: 1.504 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.009608/0.326, allocations: 3.222 MB / 0.5682 GB, free: 15.66 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007635/0.3337, allocations: 2.486 MB / 0.5706 GB, free: 13.86 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002523/0.3362, allocations: 2.065 MB / 0.5726 GB, free: 12.63 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007414/0.337, allocations: 480.2 kB / 0.5731 GB, free: 12.35 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001241/0.3382, allocations: 0.6573 MB / 0.5737 GB, free: 12 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007338/0.339, allocations: 0.5608 MB / 0.5742 GB, free: 11.69 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.3391, allocations: 35.44 kB / 0.5743 GB, free: 11.69 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01382/0.3529, allocations: 7.1 MB / 0.5812 GB, free: 6.527 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004019/0.3533, allocations: 207.4 kB / 0.5814 GB, free: 6.324 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006481/0.354, allocations: 400 kB / 0.5818 GB, free: 5.926 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006109/0.3601, allocations: 3.45 MB / 0.5852 GB, free: 2.469 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3601, allocations: 0 / 0.5852 GB, free: 2.469 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3602, allocations: 0 / 0.5852 GB, free: 2.469 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.3602, allocations: 0 / 0.5852 GB, free: 2.469 MB / 394.7 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.003602/0.3638, allocations: 1.462 MB / 0.5866 GB, free: 0.957 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.3638, allocations: 12.03 kB / 0.5866 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.364, allocations: 110.7 kB / 0.5867 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002482/0.3665, allocations: 379.7 kB / 0.5871 GB, free: 468 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007468/0.3672, allocations: 0.5288 MB / 0.5876 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.3673, allocations: 117 kB / 0.5877 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.95e-05/0.3674, allocations: 52 kB / 0.5877 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/0.3698, allocations: 1.157 MB / 0.5889 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.3699, allocations: 0 / 0.5889 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.159e-05/0.3699, allocations: 28 kB / 0.5889 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.527e-05/0.37, allocations: 33.3 kB / 0.5889 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002449/0.3724, allocations: 1.09 MB / 0.59 GB, free: 13.35 MB / 410.7 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.006052/0.3785, allocations: 5.051 MB / 0.5949 GB, free: 7.926 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002534/0.3811, allocations: 0.9653 MB / 0.5959 GB, free: 6.945 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006923/0.3818, allocations: 397.9 kB / 0.5962 GB, free: 6.555 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04613/0.4279, allocations: 27 MB / 0.6226 GB, free: 8.152 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.428, allocations: 39 kB / 0.6227 GB, free: 8.105 MB / 442.7 MB Notification: Performance of pre-optimization done (n=47): time 2.204e-06/0.428, allocations: 0 / 0.6227 GB, free: 8.105 MB / 442.7 MB Notification: Performance of matching and sorting (n=47): time 0.006273/0.4343, allocations: 2.075 MB / 0.6247 GB, free: 5.977 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.4344, allocations: 115.2 kB / 0.6248 GB, free: 5.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006292/0.435, allocations: 0.5848 MB / 0.6254 GB, free: 5.242 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.435, allocations: 37.7 kB / 0.6254 GB, free: 5.199 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.4352, allocations: 319.7 kB / 0.6257 GB, free: 4.883 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.4354, allocations: 161.7 kB / 0.6259 GB, free: 4.723 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.4354, allocations: 8 kB / 0.6259 GB, free: 4.715 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4356, allocations: 378.7 kB / 0.6262 GB, free: 4.336 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006509/0.4362, allocations: 333.1 kB / 0.6265 GB, free: 4.012 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007532/0.437, allocations: 0.4898 MB / 0.627 GB, free: 3.453 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.4383, allocations: 0.763 MB / 0.6278 GB, free: 2.629 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4383, allocations: 0 / 0.6278 GB, free: 2.629 MB / 442.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002061/0.4404, allocations: 1.078 MB / 0.6288 GB, free: 1.535 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.4404, allocations: 11.94 kB / 0.6288 GB, free: 1.523 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.4404, allocations: 4 kB / 0.6288 GB, free: 1.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.4415, allocations: 441.1 kB / 0.6293 GB, free: 1.086 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004105/0.4419, allocations: 119.9 kB / 0.6294 GB, free: 0.9688 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/0.4435, allocations: 1.641 MB / 0.631 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006093/0.4442, allocations: 115.2 kB / 0.6311 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.839e-05/0.4442, allocations: 35.98 kB / 0.6311 GB, free: 15.12 MB / 458.7 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.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase,Volume.regularFlow[2],Volume.regularFlow[1],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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003127/0.4445, allocations: 225.6 kB / 0.6313 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.4447, allocations: 63.25 kB / 0.6314 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003914/0.4486, allocations: 3.309 MB / 0.6346 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-05/0.4486, allocations: 40.08 kB / 0.6347 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.4486, allocations: 3.984 kB / 0.6347 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.4487, allocations: 3.984 kB / 0.6347 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.4501, allocations: 1.576 MB / 0.6362 GB, free: 9.824 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4502, allocations: 0 / 0.6362 GB, free: 9.824 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003242/0.4505, allocations: 87.81 kB / 0.6363 GB, free: 9.738 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001356/0.4518, allocations: 0.8933 MB / 0.6372 GB, free: 8.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.4519, allocations: 15.98 kB / 0.6372 GB, free: 8.824 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002183/0.4541, allocations: 2.299 MB / 0.6394 GB, free: 6.469 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4541, allocations: 4.062 kB / 0.6394 GB, free: 6.465 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002867/0.457, allocations: 2.308 MB / 0.6417 GB, free: 4.133 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004177/0.4574, allocations: 354.7 kB / 0.642 GB, free: 3.766 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.138e-05/0.4575, allocations: 12 kB / 0.642 GB, free: 3.754 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005233/0.458, allocations: 75.78 kB / 0.6421 GB, free: 3.68 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.4582, allocations: 64.45 kB / 0.6422 GB, free: 3.613 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.4583, allocations: 19.98 kB / 0.6422 GB, free: 3.594 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005558/0.4588, allocations: 0.5107 MB / 0.6427 GB, free: 3.082 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4588, allocations: 0 / 0.6427 GB, free: 3.082 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002635/0.4615, allocations: 1.163 MB / 0.6438 GB, free: 1.918 MB / 458.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.007073/0.4686, allocations: 3.853 MB / 0.6476 GB, free: 14.05 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002119/0.4707, allocations: 1.146 MB / 0.6487 GB, free: 12.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4707, allocations: 4.062 kB / 0.6487 GB, free: 12.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.472, allocations: 0.8809 MB / 0.6496 GB, free: 12.02 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.4738, allocations: 348.4 kB / 0.6499 GB, free: 11.68 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009545/0.4834, allocations: 6.533 MB / 0.6563 GB, free: 5.023 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005859/0.484, allocations: 1.15 MB / 0.6574 GB, free: 3.84 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000435/0.4844, allocations: 407.2 kB / 0.6578 GB, free: 3.441 MB / 474.7 MB Notification: Performance of SimCode: time 8.62e-07/0.4844, allocations: 0 / 0.6578 GB, free: 3.441 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.273/6.758, allocations: 41.19 MB / 0.698 GB, free: 125.7 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestVolume/TestVolume.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches