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: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|specificEntropy.s|specificEntropy1.s",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|specificEntropy.s|specificEntropy1.s",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009961/0.0009963, allocations: 202.1 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007378/0.0007378, allocations: 104.8 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1799/0.1799, allocations: 44.84 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002209/0.0002209, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08443/0.08467, allocations: 62.96 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy): time 0.1946/0.2793, allocations: 28 MB / 0.5427 GB, free: 10.62 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01781/0.2972, allocations: 16.37 MB / 0.5587 GB, free: 14.14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004285/0.2976, allocations: 9.312 kB / 0.5587 GB, free: 14.14 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006261/0.2983, allocations: 170.1 kB / 0.5588 GB, free: 14 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.0007148/0.299, allocations: 267.9 kB / 0.5591 GB, free: 13.78 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01555/0.3145, allocations: 4.657 MB / 0.5636 GB, free: 10.36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.3157, allocations: 0.9484 MB / 0.5646 GB, free: 9.809 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003748/0.3161, allocations: 190.5 kB / 0.5647 GB, free: 9.691 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01223/0.3284, allocations: 8.937 MB / 0.5735 GB, free: 2.234 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004289/0.3288, allocations: 231 kB / 0.5737 GB, free: 2.008 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.238e-05/0.3289, allocations: 12 kB / 0.5737 GB, free: 1.996 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01125/0.3401, allocations: 6.024 MB / 0.5796 GB, free: 11.96 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.3403, allocations: 71.72 kB / 0.5797 GB, free: 11.89 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.3405, allocations: 97.52 kB / 0.5798 GB, free: 11.79 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004273/0.3448, allocations: 2.584 MB / 0.5823 GB, free: 9.203 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3448, allocations: 7.984 kB / 0.5823 GB, free: 9.195 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3448, allocations: 0 / 0.5823 GB, free: 9.195 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.3448, allocations: 0 / 0.5823 GB, free: 9.195 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.002221/0.347, allocations: 0.9821 MB / 0.5832 GB, free: 8.164 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3471, allocations: 12.03 kB / 0.5833 GB, free: 8.152 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001592/0.3487, allocations: 211.3 kB / 0.5835 GB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004588/0.3492, allocations: 321.5 kB / 0.5838 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.893e-05/0.3492, allocations: 32.56 kB / 0.5838 GB, free: 7.555 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.665e-05/0.3493, allocations: 27.94 kB / 0.5838 GB, free: 7.527 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.3505, allocations: 498.9 kB / 0.5843 GB, free: 7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.3505, allocations: 7.938 kB / 0.5843 GB, free: 6.992 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.3505, allocations: 12 kB / 0.5843 GB, free: 6.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.3506, allocations: 8 kB / 0.5843 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.3518, allocations: 429.3 kB / 0.5847 GB, free: 6.555 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00291/0.3547, allocations: 2.45 MB / 0.5871 GB, free: 3.887 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.3558, allocations: 350.3 kB / 0.5875 GB, free: 3.535 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/0.3561, allocations: 120.8 kB / 0.5876 GB, free: 3.414 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03097/0.3871, allocations: 18.47 MB / 0.6056 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.3871, allocations: 30.84 kB / 0.6056 GB, free: 14.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.3872, allocations: 0 / 0.6056 GB, free: 14.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=15): time 0.001967/0.3891, allocations: 0.5711 MB / 0.6062 GB, free: 13.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.3892, allocations: 106.8 kB / 0.6063 GB, free: 13.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003512/0.3896, allocations: 324.4 kB / 0.6066 GB, free: 13.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.3896, allocations: 33.64 kB / 0.6066 GB, free: 13.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.3897, allocations: 207.6 kB / 0.6068 GB, free: 13.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.856e-05/0.3898, allocations: 43.36 kB / 0.6069 GB, free: 13.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.278e-05/0.3898, allocations: 4 kB / 0.6069 GB, free: 13.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3899, allocations: 346.8 kB / 0.6072 GB, free: 12.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.3902, allocations: 95.94 kB / 0.6073 GB, free: 12.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/0.3906, allocations: 229.1 kB / 0.6075 GB, free: 12.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.3909, allocations: 132.6 kB / 0.6076 GB, free: 12.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3909, allocations: 4 kB / 0.6077 GB, free: 12.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007348/0.3916, allocations: 355.5 kB / 0.608 GB, free: 12.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.3917, allocations: 8 kB / 0.608 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3917, allocations: 4 kB / 0.608 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3917, allocations: 4 kB / 0.608 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.392, allocations: 75.89 kB / 0.6081 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.392, allocations: 11.89 kB / 0.6081 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.3923, allocations: 59.81 kB / 0.6081 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.3923, allocations: 8 kB / 0.6082 GB, free: 11.84 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.000165/0.3925, allocations: 161.7 kB / 0.6083 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.785e-05/0.3925, allocations: 31.62 kB / 0.6083 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001417/0.394, allocations: 1.14 MB / 0.6095 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.394, allocations: 19.92 kB / 0.6095 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.394, allocations: 0 / 0.6095 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.394, allocations: 0 / 0.6095 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006415/0.3947, allocations: 0.6677 MB / 0.6101 GB, free: 9.758 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3947, allocations: 0 / 0.6101 GB, free: 9.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.3949, allocations: 63.94 kB / 0.6102 GB, free: 9.695 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.3949, allocations: 0 / 0.6102 GB, free: 9.695 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.3949, allocations: 4 kB / 0.6102 GB, free: 9.691 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.3949, allocations: 4 kB / 0.6102 GB, free: 9.688 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3949, allocations: 3.953 kB / 0.6102 GB, free: 9.684 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008304/0.3958, allocations: 0.6463 MB / 0.6108 GB, free: 9.016 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.3959, allocations: 192 kB / 0.611 GB, free: 8.809 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.222e-05/0.396, allocations: 11.95 kB / 0.611 GB, free: 8.797 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.3963, allocations: 19.98 kB / 0.611 GB, free: 8.777 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.671e-05/0.3963, allocations: 31.94 kB / 0.6111 GB, free: 8.746 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.3963, allocations: 11.94 kB / 0.6111 GB, free: 8.734 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003591/0.3967, allocations: 334.9 kB / 0.6114 GB, free: 8.406 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3967, allocations: 0 / 0.6114 GB, free: 8.406 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002203/0.3989, allocations: 0.8549 MB / 0.6122 GB, free: 7.551 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.003755/0.4027, allocations: 0.9955 MB / 0.6132 GB, free: 6.551 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007747/0.4035, allocations: 375.2 kB / 0.6136 GB, free: 6.188 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.4035, allocations: 4 kB / 0.6136 GB, free: 6.184 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003844/0.4039, allocations: 264.5 kB / 0.6138 GB, free: 5.922 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.4049, allocations: 181.4 kB / 0.614 GB, free: 5.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.4065, allocations: 1.307 MB / 0.6153 GB, free: 4.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.407, allocations: 0.8722 MB / 0.6161 GB, free: 3.512 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.4071, allocations: 39.44 kB / 0.6162 GB, free: 3.473 MB / 426.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4071, allocations: 0 / 0.6162 GB, free: 3.473 MB / 426.7 MB Notification: Performance of Templates: time 0.02941/0.4365, allocations: 20.5 MB / 0.6362 GB, free: 15.01 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.makefile (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 & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy_res.mat","/var/lib/jenkins/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