Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEnthalpy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEnthalpy",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 105.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2128/0.2128, allocations: 46.09 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 75.5 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1097, allocations: 62.44 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy): time 0.03226/0.142, allocations: 30.18 MB / 0.4984 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2225/0.3645, allocations: 15.54 MB / 0.5135 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002746/0.3648, allocations: 9.031 kB / 0.5135 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005975/0.3655, allocations: 216.6 kB / 0.5137 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005681/0.3661, allocations: 267.1 kB / 0.514 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01592/0.382, allocations: 5.636 MB / 0.5195 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.3835, allocations: 0.8149 MB / 0.5203 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004146/0.3839, allocations: 233.8 kB / 0.5205 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01173/0.3956, allocations: 5.47 MB / 0.5259 GB, free: 8.797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004838/0.3962, allocations: 242.8 kB / 0.5261 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.04e-05/0.3962, allocations: 28.97 kB / 0.5261 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01073/0.407, allocations: 5.95 MB / 0.5319 GB, free: 7.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.4072, allocations: 85.53 kB / 0.532 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.4075, allocations: 191 kB / 0.5322 GB, free: 6.984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007931/0.4155, allocations: 3.668 MB / 0.5358 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4155, allocations: 6.969 kB / 0.5358 GB, free: 4.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4155, allocations: 0 / 0.5358 GB, free: 4.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.4155, allocations: 4 kB / 0.5358 GB, free: 4.758 MB / 382.1 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.00204/0.4176, allocations: 0.9915 MB / 0.5368 GB, free: 3.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.4176, allocations: 11.38 kB / 0.5368 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.124e-05/0.4177, allocations: 58.98 kB / 0.5368 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009205/0.4186, allocations: 125.6 kB / 0.5369 GB, free: 3.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003357/0.4189, allocations: 332.4 kB / 0.5373 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.419, allocations: 20 kB / 0.5373 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.419, allocations: 28.73 kB / 0.5373 GB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009306/0.42, allocations: 454.4 kB / 0.5377 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.42, allocations: 3.844 kB / 0.5377 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.42, allocations: 15.16 kB / 0.5378 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.42, allocations: 7.375 kB / 0.5378 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00095/0.421, allocations: 366 kB / 0.5381 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.4234, allocations: 2.391 MB / 0.5405 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009214/0.4243, allocations: 278.6 kB / 0.5407 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.4245, allocations: 94.08 kB / 0.5408 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.4248, allocations: 478.3 kB / 0.5413 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.548e-05/0.4249, allocations: 41.66 kB / 0.5413 GB, free: 52 kB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 2.905e-06/0.4249, allocations: 4 kB / 0.5413 GB, free: 48 kB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.00159/0.4265, allocations: 449.4 kB / 0.5417 GB, free: 15.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.4265, allocations: 110.7 kB / 0.5418 GB, free: 15.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.4268, allocations: 317.6 kB / 0.5421 GB, free: 15.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.4269, allocations: 32.48 kB / 0.5422 GB, free: 15.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.427, allocations: 209 kB / 0.5424 GB, free: 15.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.427, allocations: 45.3 kB / 0.5424 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.82e-05/0.4271, allocations: 57.66 kB / 0.5425 GB, free: 15.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.4272, allocations: 340.4 kB / 0.5428 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.4275, allocations: 85.56 kB / 0.5429 GB, free: 14.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.4278, allocations: 213.9 kB / 0.5431 GB, free: 14.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005591/0.4284, allocations: 272.1 kB / 0.5433 GB, free: 14.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4284, allocations: 4 kB / 0.5433 GB, free: 14.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000714/0.4291, allocations: 319.4 kB / 0.5436 GB, free: 14.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.4292, allocations: 12 kB / 0.5437 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.4292, allocations: 2.625 kB / 0.5437 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.4292, allocations: 11.02 kB / 0.5437 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.4294, allocations: 61 kB / 0.5437 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.4295, allocations: 12.36 kB / 0.5437 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.4297, allocations: 40.95 kB / 0.5438 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.4298, allocations: 15.38 kB / 0.5438 GB, free: 14.14 MB / 398.1 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_2.medium.phase,boundary_prescriberho_1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.4299, allocations: 158.3 kB / 0.5439 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/0.43, allocations: 31.34 kB / 0.544 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.431, allocations: 0.7412 MB / 0.5447 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.4311, allocations: 6.609 kB / 0.5447 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4311, allocations: 3.938 kB / 0.5447 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4311, allocations: 6.891 kB / 0.5447 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005019/0.4316, allocations: 0.5247 MB / 0.5452 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.4316, allocations: 1.688 kB / 0.5452 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.4318, allocations: 45.11 kB / 0.5453 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.4318, allocations: 0 / 0.5453 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.4318, allocations: 2.094 kB / 0.5453 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.391e-06/0.4318, allocations: 7.984 kB / 0.5453 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4319, allocations: 3.938 kB / 0.5453 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006671/0.4325, allocations: 469 kB / 0.5457 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.118e-05/0.4326, allocations: 114.8 kB / 0.5458 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.55e-05/0.4327, allocations: 25.62 kB / 0.5459 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.4329, allocations: 11.58 kB / 0.5459 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.433, allocations: 28.53 kB / 0.5459 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.433, allocations: 7.125 kB / 0.5459 GB, free: 12.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003313/0.4333, allocations: 344.1 kB / 0.5462 GB, free: 12.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4333, allocations: 0 / 0.5462 GB, free: 12.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002407/0.4358, allocations: 0.8475 MB / 0.5471 GB, free: 11.89 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005371/0.4411, allocations: 1.892 MB / 0.5489 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007416/0.4419, allocations: 283.6 kB / 0.5492 GB, free: 9.773 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.4419, allocations: 0 / 0.5492 GB, free: 9.773 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003027/0.4422, allocations: 168.8 kB / 0.5494 GB, free: 9.609 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009938/0.4432, allocations: 188.1 kB / 0.5495 GB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006588/0.4498, allocations: 4.08 MB / 0.5535 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.4502, allocations: 0.8463 MB / 0.5543 GB, free: 4.336 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003552/0.4506, allocations: 146.7 kB / 0.5545 GB, free: 4.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.4508, allocations: 163.4 kB / 0.5546 GB, free: 4.031 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4508, allocations: 0 / 0.5546 GB, free: 4.031 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06728/0.5181, allocations: 39.04 MB / 0.5928 GB, free: 13.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.994/9.513, allocations: 0 / 0.5928 GB, free: 13.13 MB / 446.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEnthalpy_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEnthalpy.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEnthalpy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches