Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.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.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009589/0.000959, allocations: 199.8 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.345/1.345, allocations: 226.5 MB / 243.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009164/0.0009166, allocations: 102.9 kB / 295.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3666/0.3666, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002819/0.000282, allocations: 4 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2778, allocations: 62.97 MB / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.01025/0.2881, allocations: 15.63 MB / 0.5312 GB, free: 26 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004874/0.293, allocations: 5.207 MB / 0.5363 GB, free: 22.28 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005267/0.2935, allocations: 23 kB / 0.5363 GB, free: 22.27 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006065/0.2942, allocations: 256.6 kB / 0.5366 GB, free: 22.13 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.00139/0.2956, allocations: 0.8185 MB / 0.5374 GB, free: 21.66 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001748/0.2973, allocations: 0.8276 MB / 0.5382 GB, free: 21.26 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001497/0.2988, allocations: 2.205 MB / 0.5404 GB, free: 20.45 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.2993, allocations: 393.7 kB / 0.5407 GB, free: 20.31 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000743/0.3, allocations: 0.6534 MB / 0.5414 GB, free: 20.08 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005727/0.3006, allocations: 0.609 MB / 0.542 GB, free: 19.87 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.855e-05/0.3007, allocations: 28.5 kB / 0.542 GB, free: 19.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006199/0.3013, allocations: 318.8 kB / 0.5423 GB, free: 19.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.3015, allocations: 234.5 kB / 0.5425 GB, free: 19.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003116/0.3019, allocations: 379 kB / 0.5429 GB, free: 19.5 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008062/0.3027, allocations: 0.8097 MB / 0.5437 GB, free: 19.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3027, allocations: 6.625 kB / 0.5437 GB, free: 19.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3027, allocations: 0 / 0.5437 GB, free: 19.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.3027, allocations: 0 / 0.5437 GB, free: 19.32 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001476/0.3042, allocations: 0.9085 MB / 0.5446 GB, free: 18.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3042, allocations: 7.875 kB / 0.5446 GB, free: 18.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.3044, allocations: 96.12 kB / 0.5447 GB, free: 18.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.3047, allocations: 88.31 kB / 0.5447 GB, free: 18.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006353/0.3053, allocations: 0.5108 MB / 0.5452 GB, free: 18.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.315e-05/0.3054, allocations: 100.4 kB / 0.5453 GB, free: 18.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-05/0.3055, allocations: 55.2 kB / 0.5454 GB, free: 18.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.3067, allocations: 0.8302 MB / 0.5462 GB, free: 17.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3067, allocations: 1.375 kB / 0.5462 GB, free: 17.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.581e-05/0.3068, allocations: 32.39 kB / 0.5462 GB, free: 17.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.358e-05/0.3068, allocations: 41.5 kB / 0.5463 GB, free: 17.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009496/0.3078, allocations: 0.6339 MB / 0.5469 GB, free: 17.38 MB / 378.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.00364/0.3114, allocations: 4.336 MB / 0.5511 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.312, allocations: 353.2 kB / 0.5515 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002605/0.3123, allocations: 173.2 kB / 0.5516 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001453/0.3137, allocations: 1.703 MB / 0.5533 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.66e-05/0.3138, allocations: 41.56 kB / 0.5533 GB, free: 11.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.3138, allocations: 0 / 0.5533 GB, free: 11.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.003151/0.3169, allocations: 1.406 MB / 0.5547 GB, free: 11.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.317, allocations: 141.3 kB / 0.5548 GB, free: 10.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000667/0.3176, allocations: 0.6237 MB / 0.5554 GB, free: 10.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.3177, allocations: 31.58 kB / 0.5555 GB, free: 10.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.3179, allocations: 397.9 kB / 0.5559 GB, free: 10.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.02e-05/0.318, allocations: 137.8 kB / 0.556 GB, free: 10.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-05/0.318, allocations: 14.72 kB / 0.556 GB, free: 10.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.374e-05/0.3181, allocations: 371.5 kB / 0.5564 GB, free: 9.898 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002945/0.3184, allocations: 189 kB / 0.5565 GB, free: 9.836 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004106/0.3188, allocations: 0.5522 MB / 0.5571 GB, free: 9.277 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007084/0.3195, allocations: 0.7801 MB / 0.5578 GB, free: 8.605 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.3196, allocations: 7.156 kB / 0.5578 GB, free: 8.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001273/0.3208, allocations: 0.8351 MB / 0.5587 GB, free: 8.238 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3209, allocations: 14.09 kB / 0.5587 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.3209, allocations: 11.58 kB / 0.5587 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003589/0.3213, allocations: 99.39 kB / 0.5588 GB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006129/0.3219, allocations: 180.2 kB / 0.559 GB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004393/0.3223, allocations: 0.6682 MB / 0.5596 GB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004631/0.3228, allocations: 37.47 kB / 0.5596 GB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.055e-05/0.3229, allocations: 41.31 kB / 0.5597 GB, free: 7.594 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002791/0.3232, allocations: 254.3 kB / 0.5599 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.164e-05/0.3233, allocations: 72.88 kB / 0.56 GB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007818/0.324, allocations: 0.5023 MB / 0.5605 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.3241, allocations: 3.641 kB / 0.5605 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3241, allocations: 0 / 0.5605 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3241, allocations: 7.969 kB / 0.5605 GB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.3256, allocations: 1.217 MB / 0.5617 GB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3256, allocations: 2.125 kB / 0.5617 GB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.3259, allocations: 67.66 kB / 0.5617 GB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001475/0.3261, allocations: 50.3 kB / 0.5618 GB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.3261, allocations: 10.88 kB / 0.5618 GB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002107/0.3263, allocations: 0.5589 MB / 0.5624 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3263, allocations: 7.406 kB / 0.5624 GB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007734/0.3271, allocations: 0.7256 MB / 0.5631 GB, free: 5.047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001961/0.3273, allocations: 188.8 kB / 0.5632 GB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.704e-05/0.3274, allocations: 14.19 kB / 0.5633 GB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.3278, allocations: 27.77 kB / 0.5633 GB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.708e-05/0.3279, allocations: 30.19 kB / 0.5633 GB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.969e-05/0.3279, allocations: 26.08 kB / 0.5633 GB, free: 4.828 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004588/0.3284, allocations: 452 kB / 0.5638 GB, free: 4.566 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3284, allocations: 0 / 0.5638 GB, free: 4.566 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000728/0.3291, allocations: 203.2 kB / 0.564 GB, free: 4.535 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 35 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001273/0.3304, allocations: 1.399 MB / 0.5653 GB, free: 3.418 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008364/0.3313, allocations: 0.4933 MB / 0.5658 GB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3313, allocations: 5.531 kB / 0.5658 GB, free: 3.188 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003011/0.3316, allocations: 177 kB / 0.566 GB, free: 3.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.3333, allocations: 320.7 kB / 0.5663 GB, free: 2.957 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005099/0.3384, allocations: 4.179 MB / 0.5704 GB, free: 15.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.3389, allocations: 0.9376 MB / 0.5713 GB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003114/0.3392, allocations: 237.9 kB / 0.5715 GB, free: 14.7 MB / 394.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3392, allocations: 0 / 0.5715 GB, free: 14.7 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.33/4.669, allocations: 14.82 MB / 0.586 GB, free: 15.91 MB / 410.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/ConstantPropertyLiquidWater/ConstantPropertyLiquidWater.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches