Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.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.TestSpecificEntropy,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEntropy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEntropy",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 200 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.231/1.231, allocations: 226.5 MB / 243.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000862/0.0008617, allocations: 99.16 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2863/0.2863, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002308/0.0002308, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2626, allocations: 62.96 MB / 0.516 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy): time 0.02007/0.2828, allocations: 28.1 MB / 0.5434 GB, free: 17.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01413/0.2969, allocations: 16.37 MB / 0.5594 GB, free: 5.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004638/0.2974, allocations: 9.906 kB / 0.5594 GB, free: 5.566 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007007/0.2982, allocations: 180.7 kB / 0.5596 GB, free: 5.465 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.0007756/0.299, allocations: 272.5 kB / 0.5598 GB, free: 5.301 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01486/0.3138, allocations: 4.665 MB / 0.5644 GB, free: 2.973 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001225/0.3151, allocations: 0.9736 MB / 0.5653 GB, free: 2.391 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004182/0.3155, allocations: 207.5 kB / 0.5655 GB, free: 2.258 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01533/0.3308, allocations: 8.957 MB / 0.5743 GB, free: 13.62 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005369/0.3314, allocations: 239 kB / 0.5745 GB, free: 13.39 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.314e-05/0.3315, allocations: 12 kB / 0.5745 GB, free: 13.38 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01256/0.3441, allocations: 6.059 MB / 0.5804 GB, free: 7.309 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000185/0.3443, allocations: 75.72 kB / 0.5805 GB, free: 7.234 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.3446, allocations: 197 kB / 0.5807 GB, free: 7.035 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004746/0.3494, allocations: 2.608 MB / 0.5832 GB, free: 4.422 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3494, allocations: 4 kB / 0.5832 GB, free: 4.418 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3494, allocations: 0 / 0.5832 GB, free: 4.418 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.3494, allocations: 0 / 0.5832 GB, free: 4.418 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.002275/0.3517, allocations: 0.9746 MB / 0.5842 GB, free: 3.395 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3518, allocations: 12.03 kB / 0.5842 GB, free: 3.383 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.892e-05/0.3519, allocations: 58.73 kB / 0.5843 GB, free: 3.316 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.3534, allocations: 216.3 kB / 0.5845 GB, free: 3.105 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.3539, allocations: 330.5 kB / 0.5848 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.3539, allocations: 24.94 kB / 0.5848 GB, free: 2.719 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.877e-05/0.354, allocations: 28.12 kB / 0.5848 GB, free: 2.691 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.3552, allocations: 0.4989 MB / 0.5853 GB, free: 2.152 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.3552, allocations: 0 / 0.5853 GB, free: 2.152 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.3552, allocations: 12 kB / 0.5853 GB, free: 2.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.3552, allocations: 8 kB / 0.5853 GB, free: 2.133 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.3564, allocations: 437.2 kB / 0.5858 GB, free: 1.699 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003001/0.3595, allocations: 2.446 MB / 0.5881 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.3606, allocations: 358.2 kB / 0.5885 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/0.3609, allocations: 120.8 kB / 0.5886 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03247/0.3934, allocations: 18.47 MB / 0.6066 GB, free: 9.727 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.3934, allocations: 38.56 kB / 0.6067 GB, free: 9.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=15): time 1.913e-06/0.3935, allocations: 3.938 kB / 0.6067 GB, free: 9.676 MB / 426.7 MB Notification: Performance of matching and sorting (n=15): time 0.002007/0.3955, allocations: 0.5652 MB / 0.6072 GB, free: 9.105 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.3955, allocations: 106.8 kB / 0.6073 GB, free: 8.977 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.3959, allocations: 324.7 kB / 0.6076 GB, free: 8.652 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.3959, allocations: 25.7 kB / 0.6077 GB, free: 8.621 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.3961, allocations: 211.7 kB / 0.6079 GB, free: 8.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.272e-05/0.3961, allocations: 55.2 kB / 0.6079 GB, free: 8.355 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/0.3961, allocations: 4 kB / 0.6079 GB, free: 8.352 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3962, allocations: 338.8 kB / 0.6082 GB, free: 8.012 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002855/0.3965, allocations: 103.9 kB / 0.6083 GB, free: 7.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/0.3969, allocations: 221.1 kB / 0.6086 GB, free: 7.641 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006073/0.3975, allocations: 318.6 kB / 0.6089 GB, free: 7.281 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3975, allocations: 0 / 0.6089 GB, free: 7.281 MB / 426.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007647/0.3983, allocations: 364.7 kB / 0.6092 GB, free: 6.918 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.3983, allocations: 8 kB / 0.6092 GB, free: 6.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3983, allocations: 8.406 kB / 0.6092 GB, free: 6.902 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.3983, allocations: 4 kB / 0.6092 GB, free: 6.898 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.3986, allocations: 79.89 kB / 0.6093 GB, free: 6.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.3986, allocations: 7.938 kB / 0.6093 GB, free: 6.812 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.3989, allocations: 59.59 kB / 0.6094 GB, free: 6.754 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.3989, allocations: 16 kB / 0.6094 GB, free: 6.738 MB / 426.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 (30): * Single equations (assignments): 30 * 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.000155/0.3991, allocations: 153.8 kB / 0.6095 GB, free: 6.578 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.564e-05/0.3992, allocations: 27.62 kB / 0.6096 GB, free: 6.551 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/0.4006, allocations: 1.156 MB / 0.6107 GB, free: 5.383 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/0.4006, allocations: 11.98 kB / 0.6107 GB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4006, allocations: 0 / 0.6107 GB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4006, allocations: 0 / 0.6107 GB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006226/0.4013, allocations: 0.6638 MB / 0.6113 GB, free: 4.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4013, allocations: 0 / 0.6113 GB, free: 4.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.4015, allocations: 63.94 kB / 0.6114 GB, free: 4.598 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.4015, allocations: 4 kB / 0.6114 GB, free: 4.594 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.4015, allocations: 7.938 kB / 0.6114 GB, free: 4.586 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4015, allocations: 3.938 kB / 0.6114 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.4015, allocations: 0 / 0.6114 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008141/0.4024, allocations: 0.6348 MB / 0.612 GB, free: 3.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.4025, allocations: 199.9 kB / 0.6122 GB, free: 3.715 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.4026, allocations: 3.938 kB / 0.6122 GB, free: 3.711 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.4028, allocations: 39.91 kB / 0.6123 GB, free: 3.672 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.864e-05/0.4029, allocations: 19.97 kB / 0.6123 GB, free: 3.652 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.4029, allocations: 4 kB / 0.6123 GB, free: 3.648 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003349/0.4033, allocations: 338.8 kB / 0.6126 GB, free: 3.316 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4033, allocations: 0 / 0.6126 GB, free: 3.316 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002132/0.4054, allocations: 0.8511 MB / 0.6135 GB, free: 2.465 MB / 426.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: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.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 (19): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.004855/0.4103, allocations: 2.097 MB / 0.6155 GB, free: 356 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007486/0.411, allocations: 373.1 kB / 0.6159 GB, free: 15.98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.411, allocations: 4 kB / 0.6159 GB, free: 15.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000384/0.4114, allocations: 266.6 kB / 0.6161 GB, free: 15.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009785/0.4124, allocations: 175 kB / 0.6163 GB, free: 15.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004594/0.417, allocations: 2.88 MB / 0.6191 GB, free: 12.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.4174, allocations: 0.8722 MB / 0.6199 GB, free: 11.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.4176, allocations: 187.4 kB / 0.6201 GB, free: 11.49 MB / 442.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4176, allocations: 0 / 0.6201 GB, free: 11.49 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.66/5.078, allocations: 21.35 MB / 0.641 GB, free: 6.113 MB / 458.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEntropy_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestSpecificEntropy.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestSpecificEntropy/TestSpecificEntropy.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches