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: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|specificEnthalpy.h_out|specificEnthalpy1.h_out",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|specificEnthalpy.h_out|specificEnthalpy1.h_out",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001111/0.001111, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 226.6 MB / 243.1 MB, free: 12.54 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008772/0.0008772, allocations: 92.86 kB / 295.1 MB, free: 4.402 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1844/0.1844, allocations: 44.83 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.0002568, allocations: 4 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09622/0.0965, allocations: 62.95 MB / 0.5153 GB, free: 5.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy): time 0.0295/0.126, allocations: 27.98 MB / 0.5427 GB, free: 9.051 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2254/0.3515, allocations: 14.44 MB / 0.5567 GB, free: 11.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004883/0.352, allocations: 9.312 kB / 0.5568 GB, free: 11.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007364/0.3528, allocations: 173.5 kB / 0.5569 GB, free: 11.52 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.0007697/0.3536, allocations: 259.6 kB / 0.5572 GB, free: 11.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01201/0.3656, allocations: 4.319 MB / 0.5614 GB, free: 11.46 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.3667, allocations: 0.93 MB / 0.5623 GB, free: 11.46 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/0.367, allocations: 180.2 kB / 0.5625 GB, free: 11.45 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01219/0.3792, allocations: 8.959 MB / 0.5712 GB, free: 11.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005877/0.3798, allocations: 225.2 kB / 0.5714 GB, free: 11.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.06e-05/0.3799, allocations: 16.66 kB / 0.5714 GB, free: 11.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01005/0.39, allocations: 5.83 MB / 0.5771 GB, free: 10.6 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.3901, allocations: 65.16 kB / 0.5772 GB, free: 10.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.3903, allocations: 96.55 kB / 0.5773 GB, free: 10.53 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003585/0.3939, allocations: 2.465 MB / 0.5797 GB, free: 9.414 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.394, allocations: 0.625 kB / 0.5797 GB, free: 9.414 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.394, allocations: 0 / 0.5797 GB, free: 9.414 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.394, allocations: 2.406 kB / 0.5797 GB, free: 9.414 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002136/0.3961, allocations: 0.9424 MB / 0.5806 GB, free: 8.727 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3962, allocations: 9.062 kB / 0.5806 GB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008632/0.397, allocations: 125.1 kB / 0.5808 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.3974, allocations: 326.8 kB / 0.5811 GB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.598e-05/0.3974, allocations: 24.75 kB / 0.5811 GB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.3975, allocations: 33.83 kB / 0.5811 GB, free: 8.402 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009226/0.3984, allocations: 468.5 kB / 0.5816 GB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3984, allocations: 0.6875 kB / 0.5816 GB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.3985, allocations: 13.38 kB / 0.5816 GB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3985, allocations: 4 kB / 0.5816 GB, free: 7.988 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009351/0.3994, allocations: 404.9 kB / 0.582 GB, free: 7.664 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.4016, allocations: 2.394 MB / 0.5843 GB, free: 5.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008735/0.4025, allocations: 295.2 kB / 0.5846 GB, free: 5.023 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.4028, allocations: 114 kB / 0.5847 GB, free: 4.934 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002776/0.4031, allocations: 490.8 kB / 0.5852 GB, free: 4.387 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.4031, allocations: 33.44 kB / 0.5852 GB, free: 4.348 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.4031, allocations: 4 kB / 0.5852 GB, free: 4.344 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.001456/0.4046, allocations: 494.7 kB / 0.5857 GB, free: 3.926 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.4046, allocations: 106.8 kB / 0.5858 GB, free: 3.797 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.4049, allocations: 321.2 kB / 0.5861 GB, free: 3.539 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.4049, allocations: 28.95 kB / 0.5861 GB, free: 3.508 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.919e-05/0.405, allocations: 217.2 kB / 0.5863 GB, free: 3.336 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.456e-05/0.405, allocations: 38.2 kB / 0.5864 GB, free: 3.305 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.005e-05/0.405, allocations: 6.938 kB / 0.5864 GB, free: 3.301 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.587e-05/0.4051, allocations: 339.4 kB / 0.5867 GB, free: 2.973 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002416/0.4053, allocations: 90.56 kB / 0.5868 GB, free: 2.902 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.4056, allocations: 213.2 kB / 0.587 GB, free: 2.668 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002568/0.4059, allocations: 117.3 kB / 0.5871 GB, free: 2.582 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4059, allocations: 4 kB / 0.5871 GB, free: 2.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006048/0.4065, allocations: 338.5 kB / 0.5874 GB, free: 2.301 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.4066, allocations: 9.672 kB / 0.5874 GB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4066, allocations: 4 kB / 0.5874 GB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.4066, allocations: 8 kB / 0.5874 GB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.4068, allocations: 75.52 kB / 0.5875 GB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.4068, allocations: 8.281 kB / 0.5875 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.4071, allocations: 54.91 kB / 0.5876 GB, free: 2.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.4071, allocations: 11.25 kB / 0.5876 GB, free: 2.145 MB / 378.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.0001163/0.4072, allocations: 156.1 kB / 0.5877 GB, free: 2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.371e-05/0.4073, allocations: 27.62 kB / 0.5878 GB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009194/0.4082, allocations: 0.7856 MB / 0.5885 GB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.4082, allocations: 13.08 kB / 0.5885 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4082, allocations: 0 / 0.5885 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.4082, allocations: 3.984 kB / 0.5885 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003869/0.4086, allocations: 0.5345 MB / 0.5891 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.4086, allocations: 0 / 0.5891 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001891/0.4088, allocations: 51.95 kB / 0.5891 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4089, allocations: 0 / 0.5891 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.4089, allocations: 10.95 kB / 0.5891 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.4089, allocations: 0 / 0.5891 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.4089, allocations: 0 / 0.5891 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005544/0.4094, allocations: 478.9 kB / 0.5896 GB, free: 496 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.274e-05/0.4095, allocations: 186.7 kB / 0.5898 GB, free: 312 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.4096, allocations: 5.953 kB / 0.5898 GB, free: 308 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.4098, allocations: 31.02 kB / 0.5898 GB, free: 280 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.617e-05/0.4099, allocations: 22.78 kB / 0.5898 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.4099, allocations: 4 kB / 0.5898 GB, free: 256 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002864/0.4102, allocations: 340.7 kB / 0.5901 GB, free: 15.99 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4102, allocations: 0 / 0.5901 GB, free: 15.99 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002525/0.4127, allocations: 0.8481 MB / 0.591 GB, free: 15.18 MB / 394.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.003301/0.416, allocations: 0.9861 MB / 0.5919 GB, free: 14.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006934/0.4167, allocations: 298.7 kB / 0.5922 GB, free: 14.06 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4168, allocations: 8 kB / 0.5922 GB, free: 14.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000285/0.4171, allocations: 171.5 kB / 0.5924 GB, free: 13.94 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009335/0.418, allocations: 174.3 kB / 0.5926 GB, free: 13.81 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.4193, allocations: 1.072 MB / 0.5936 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.4197, allocations: 0.8417 MB / 0.5944 GB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.533e-05/0.4198, allocations: 27.44 kB / 0.5944 GB, free: 11.9 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4198, allocations: 0 / 0.5944 GB, free: 11.9 MB / 394.7 MB Notification: Performance of Templates: time 0.0278/0.4476, allocations: 19.85 MB / 0.6138 GB, free: 8.18 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.makefile (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 & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy_res.mat","/var/lib/jenkins/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