Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 201.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.306/1.306, allocations: 226.5 MB / 243.4 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008826/0.0008823, allocations: 102.8 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3556/0.3556, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002764, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3687, allocations: 62.96 MB / 0.516 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.01571/0.3845, allocations: 19.24 MB / 0.5348 GB, free: 23.56 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004832/0.3894, allocations: 4.129 MB / 0.5388 GB, free: 20.62 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006579/0.39, allocations: 27.09 kB / 0.5388 GB, free: 20.61 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007176/0.3908, allocations: 255 kB / 0.5391 GB, free: 20.48 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.001723/0.3925, allocations: 0.84 MB / 0.5399 GB, free: 20 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001837/0.3944, allocations: 0.7128 MB / 0.5406 GB, free: 19.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.3962, allocations: 2.222 MB / 0.5427 GB, free: 18.83 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005201/0.3968, allocations: 388.7 kB / 0.5431 GB, free: 18.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00148/0.3982, allocations: 0.8118 MB / 0.5439 GB, free: 18.38 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008049/0.3991, allocations: 0.625 MB / 0.5445 GB, free: 18.17 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.864e-05/0.3992, allocations: 31.5 kB / 0.5445 GB, free: 18.17 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007556/0.3999, allocations: 261.9 kB / 0.5448 GB, free: 18.1 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002731/0.4002, allocations: 230.7 kB / 0.545 GB, free: 18.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003381/0.4006, allocations: 374.8 kB / 0.5454 GB, free: 17.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.4016, allocations: 0.7885 MB / 0.5461 GB, free: 17.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.4016, allocations: 1.594 kB / 0.5461 GB, free: 17.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4016, allocations: 0 / 0.5461 GB, free: 17.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.4016, allocations: 0 / 0.5461 GB, free: 17.65 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.001868/0.4035, allocations: 0.9136 MB / 0.547 GB, free: 17.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.4035, allocations: 11.98 kB / 0.547 GB, free: 17.01 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.4037, allocations: 97.66 kB / 0.5471 GB, free: 16.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002923/0.404, allocations: 91.44 kB / 0.5472 GB, free: 16.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007102/0.4047, allocations: 0.5003 MB / 0.5477 GB, free: 16.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.329e-05/0.4048, allocations: 103.4 kB / 0.5478 GB, free: 16.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.546e-05/0.4049, allocations: 52.62 kB / 0.5479 GB, free: 16.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.4062, allocations: 0.8141 MB / 0.5487 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.4063, allocations: 9.219 kB / 0.5487 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.332e-05/0.4063, allocations: 27.84 kB / 0.5487 GB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.849e-05/0.4064, allocations: 46.03 kB / 0.5487 GB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.4075, allocations: 0.6369 MB / 0.5494 GB, free: 15.73 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.004169/0.4116, allocations: 4.217 MB / 0.5535 GB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007959/0.4125, allocations: 415.1 kB / 0.5539 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.4128, allocations: 208.4 kB / 0.5541 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003629/0.4132, allocations: 0.5089 MB / 0.5546 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.4132, allocations: 39.12 kB / 0.5546 GB, free: 11.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.913e-06/0.4132, allocations: 0 / 0.5546 GB, free: 11.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.003123/0.4163, allocations: 1.52 MB / 0.5561 GB, free: 10.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.4164, allocations: 134.5 kB / 0.5562 GB, free: 10.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006554/0.417, allocations: 0.5638 MB / 0.5568 GB, free: 10.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.4171, allocations: 36.45 kB / 0.5568 GB, free: 10.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.4173, allocations: 356.3 kB / 0.5571 GB, free: 9.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.4174, allocations: 163.4 kB / 0.5573 GB, free: 9.746 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/0.4175, allocations: 14 kB / 0.5573 GB, free: 9.734 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.4176, allocations: 379.5 kB / 0.5577 GB, free: 9.391 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/0.418, allocations: 223.2 kB / 0.5579 GB, free: 9.312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005474/0.4185, allocations: 0.5212 MB / 0.5584 GB, free: 8.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008862/0.4194, allocations: 0.7757 MB / 0.5592 GB, free: 8.234 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.4194, allocations: 3.5 kB / 0.5592 GB, free: 8.234 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001746/0.4212, allocations: 0.9557 MB / 0.5601 GB, free: 7.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.4212, allocations: 9.5 kB / 0.5601 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.4212, allocations: 10.12 kB / 0.5601 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.4223, allocations: 284 kB / 0.5604 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004135/0.4227, allocations: 118 kB / 0.5605 GB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007963/0.4235, allocations: 0.8722 MB / 0.5613 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005202/0.424, allocations: 40.11 kB / 0.5614 GB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.556e-05/0.4241, allocations: 39.73 kB / 0.5614 GB, free: 6.852 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (73): * Single equations (assignments): 72 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.4244, allocations: 244.5 kB / 0.5617 GB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.474e-05/0.4245, allocations: 63.69 kB / 0.5617 GB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.4257, allocations: 0.708 MB / 0.5624 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.4258, allocations: 9.938 kB / 0.5624 GB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.4258, allocations: 4 kB / 0.5624 GB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.4258, allocations: 4.922 kB / 0.5624 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/0.4279, allocations: 1.395 MB / 0.5638 GB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.4279, allocations: 6.656 kB / 0.5638 GB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009968/0.4289, allocations: 193.1 kB / 0.564 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002879/0.4292, allocations: 63.75 kB / 0.564 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.4292, allocations: 13.16 kB / 0.564 GB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.4312, allocations: 2.81 MB / 0.5668 GB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4312, allocations: 1.406 kB / 0.5668 GB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.4326, allocations: 0.993 MB / 0.5678 GB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.4329, allocations: 198.6 kB / 0.568 GB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.276e-05/0.433, allocations: 12.47 kB / 0.568 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003922/0.4334, allocations: 34.98 kB / 0.568 GB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.4335, allocations: 35.67 kB / 0.568 GB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.093e-05/0.4336, allocations: 26.36 kB / 0.5681 GB, free: 1.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004976/0.4341, allocations: 390.1 kB / 0.5684 GB, free: 1.094 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4341, allocations: 5.188 kB / 0.5684 GB, free: 1.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008596/0.4349, allocations: 207.2 kB / 0.5686 GB, free: 1.059 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00199/0.4369, allocations: 1.664 MB / 0.5703 GB, free: 15.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.4382, allocations: 0.5999 MB / 0.5708 GB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.4382, allocations: 5.375 kB / 0.5708 GB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.4394, allocations: 478.9 kB / 0.5713 GB, free: 15.24 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001707/0.4411, allocations: 329.9 kB / 0.5716 GB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006546/0.4476, allocations: 4.385 MB / 0.5759 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.4482, allocations: 0.9387 MB / 0.5768 GB, free: 9.352 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003628/0.4485, allocations: 231.4 kB / 0.577 GB, free: 9.125 MB / 394.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4485, allocations: 7.938 kB / 0.577 GB, free: 9.117 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.35/4.799, allocations: 16.15 MB / 0.5928 GB, free: 9 MB / 410.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat does not exist to compare? outputFormat=mat