Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.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.Sensors.TestSpecificEnthalpy,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEnthalpy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEnthalpy",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001081/0.001081, 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.261/1.261, allocations: 226.5 MB / 243.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008714/0.0008717, allocations: 88.42 kB / 295.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2983/0.2983, allocations: 44.83 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002828/0.0002828, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2956, allocations: 62.95 MB / 0.516 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy): time 0.01914/0.3148, allocations: 28.07 MB / 0.5434 GB, free: 17.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01272/0.3275, allocations: 14.46 MB / 0.5575 GB, free: 7.176 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003578/0.3279, allocations: 13.5 kB / 0.5575 GB, free: 7.168 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005825/0.3285, allocations: 167.6 kB / 0.5577 GB, free: 7.078 MB / 378.7 MB [/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. [/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.0005538/0.3291, allocations: 263.5 kB / 0.5579 GB, free: 6.922 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0137/0.3428, allocations: 4.33 MB / 0.5621 GB, free: 4.883 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.344, allocations: 0.9396 MB / 0.5631 GB, free: 4.328 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002991/0.3443, allocations: 204.9 kB / 0.5633 GB, free: 4.199 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01379/0.3581, allocations: 8.994 MB / 0.572 GB, free: 15.97 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004825/0.3586, allocations: 223 kB / 0.5723 GB, free: 15.75 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.3587, allocations: 16 kB / 0.5723 GB, free: 15.73 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01096/0.3697, allocations: 5.825 MB / 0.578 GB, free: 9.902 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.3698, allocations: 67.73 kB / 0.578 GB, free: 9.836 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000321/0.3702, allocations: 193 kB / 0.5782 GB, free: 9.641 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004195/0.3744, allocations: 2.46 MB / 0.5806 GB, free: 7.176 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3744, allocations: 4 kB / 0.5806 GB, free: 7.172 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3744, allocations: 0 / 0.5806 GB, free: 7.172 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.3744, allocations: 0 / 0.5806 GB, free: 7.172 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002105/0.3765, allocations: 0.9433 MB / 0.5815 GB, free: 6.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3766, allocations: 12.03 kB / 0.5815 GB, free: 6.168 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.827e-05/0.3767, allocations: 58.73 kB / 0.5816 GB, free: 6.102 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009192/0.3776, allocations: 128.5 kB / 0.5817 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.378, allocations: 334.5 kB / 0.582 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.378, allocations: 20.94 kB / 0.5821 GB, free: 5.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.765e-05/0.3781, allocations: 28.12 kB / 0.5821 GB, free: 5.562 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.3792, allocations: 466.9 kB / 0.5825 GB, free: 5.066 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3792, allocations: 7.938 kB / 0.5825 GB, free: 5.059 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.3792, allocations: 12 kB / 0.5826 GB, free: 5.047 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3793, allocations: 4 kB / 0.5826 GB, free: 5.043 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.3803, allocations: 401.2 kB / 0.5829 GB, free: 4.645 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.3834, allocations: 2.395 MB / 0.5853 GB, free: 2.039 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.3845, allocations: 306.3 kB / 0.5856 GB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.3848, allocations: 108.7 kB / 0.5857 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004425/0.3852, allocations: 493 kB / 0.5861 GB, free: 1.051 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.3853, allocations: 34.55 kB / 0.5862 GB, free: 1.008 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.3853, allocations: 0 / 0.5862 GB, free: 1.008 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.001616/0.3869, allocations: 497.2 kB / 0.5866 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.387, allocations: 106.8 kB / 0.5868 GB, free: 396 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003261/0.3873, allocations: 320.5 kB / 0.5871 GB, free: 68 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.3873, allocations: 29.7 kB / 0.5871 GB, free: 32 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.3875, allocations: 211.6 kB / 0.5873 GB, free: 15.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.3875, allocations: 39.39 kB / 0.5873 GB, free: 15.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.218e-05/0.3875, allocations: 4 kB / 0.5873 GB, free: 15.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.3877, allocations: 346.8 kB / 0.5877 GB, free: 15.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.3879, allocations: 87.94 kB / 0.5877 GB, free: 15.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.3883, allocations: 215.4 kB / 0.5879 GB, free: 15.08 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005836/0.3889, allocations: 297.4 kB / 0.5882 GB, free: 14.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3889, allocations: 4 kB / 0.5882 GB, free: 14.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007203/0.3896, allocations: 337 kB / 0.5886 GB, free: 14.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.3896, allocations: 6.344 kB / 0.5886 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3897, allocations: 4 kB / 0.5886 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.3897, allocations: 8 kB / 0.5886 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.3899, allocations: 71.83 kB / 0.5886 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.3899, allocations: 7.938 kB / 0.5887 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.3902, allocations: 59.91 kB / 0.5887 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.3902, allocations: 12 kB / 0.5887 GB, free: 14.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 2 (boundary_prescriberho_1.medium.phase,boundary_prescriberho_2.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.3904, allocations: 149.8 kB / 0.5889 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.389e-05/0.3904, allocations: 31.62 kB / 0.5889 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.3915, allocations: 0.7795 MB / 0.5897 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.3916, allocations: 19.91 kB / 0.5897 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3916, allocations: 0 / 0.5897 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3916, allocations: 0 / 0.5897 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005242/0.3921, allocations: 0.5337 MB / 0.5902 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3921, allocations: 0 / 0.5902 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.3924, allocations: 55.83 kB / 0.5902 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3924, allocations: 4 kB / 0.5903 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.3924, allocations: 4 kB / 0.5903 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.3924, allocations: 3.938 kB / 0.5903 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.3924, allocations: 3.984 kB / 0.5903 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006626/0.3931, allocations: 473.7 kB / 0.5907 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.3933, allocations: 192.1 kB / 0.5909 GB, free: 11.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.948e-05/0.3933, allocations: 0 / 0.5909 GB, free: 11.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.3936, allocations: 35.83 kB / 0.5909 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.034e-05/0.3936, allocations: 15.97 kB / 0.5909 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.3937, allocations: 11.98 kB / 0.591 GB, free: 11.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003364/0.394, allocations: 334.9 kB / 0.5913 GB, free: 11.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.394, allocations: 0 / 0.5913 GB, free: 11.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002277/0.3963, allocations: 0.8472 MB / 0.5921 GB, free: 10.66 MB / 410.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: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,boundary_prescriberho_1.medium.phase,boundary_prescriberho_2.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004661/0.401, allocations: 1.909 MB / 0.594 GB, free: 8.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006743/0.4016, allocations: 299.8 kB / 0.5943 GB, free: 8.441 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4017, allocations: 3.938 kB / 0.5943 GB, free: 8.438 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.402, allocations: 175.9 kB / 0.5944 GB, free: 8.266 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009222/0.4029, allocations: 169.4 kB / 0.5946 GB, free: 8.105 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003959/0.4069, allocations: 2.605 MB / 0.5971 GB, free: 5.391 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.4072, allocations: 0.8349 MB / 0.5979 GB, free: 4.531 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.4074, allocations: 159.4 kB / 0.5981 GB, free: 4.375 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4074, allocations: 0 / 0.5981 GB, free: 4.375 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.649/5.057, allocations: 20.62 MB / 0.6182 GB, free: 15.73 MB / 442.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEnthalpy_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEnthalpy.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestSpecificEnthalpy/TestSpecificEnthalpy.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches