Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003852/0.003858, allocations: 351.1 kB / 15.95 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.957/3.957, allocations: 341.5 MB / 358.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.005888/0.005888, allocations: 236.5 kB / 397.9 MB, free: 4.984 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4694/0.4694, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004897/0.0004899, allocations: 8 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08625/0.08677, allocations: 48.72 MB / 0.6068 GB, free: 4.629 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestSpecificEntropy): time 0.3053/0.3922, allocations: 27.63 MB / 0.6337 GB, free: 76.29 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02587/0.4181, allocations: 16.17 MB / 0.6495 GB, free: 64.79 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005655/0.4187, allocations: 15.59 kB / 0.6496 GB, free: 64.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00076/0.4195, allocations: 158.7 kB / 0.6497 GB, free: 64.65 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0009316/0.4204, allocations: 268.2 kB / 0.65 GB, free: 64.43 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02233/0.4428, allocations: 4.574 MB / 0.6544 GB, free: 61.09 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.4444, allocations: 0.9394 MB / 0.6553 GB, free: 60.54 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000451/0.4448, allocations: 191.1 kB / 0.6555 GB, free: 60.42 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02036/0.4652, allocations: 8.807 MB / 0.6641 GB, free: 54.35 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006253/0.4659, allocations: 227 kB / 0.6643 GB, free: 54.12 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.445e-05/0.466, allocations: 12 kB / 0.6644 GB, free: 54.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01581/0.4818, allocations: 5.938 MB / 0.6702 GB, free: 48.17 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.482, allocations: 67.67 kB / 0.6702 GB, free: 48.1 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.4822, allocations: 97.52 kB / 0.6703 GB, free: 48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00585/0.4881, allocations: 2.545 MB / 0.6728 GB, free: 45.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.4881, allocations: 4 kB / 0.6728 GB, free: 45.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4881, allocations: 0 / 0.6728 GB, free: 45.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.4882, allocations: 0 / 0.6728 GB, free: 45.45 MB / 362.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.003082/0.4913, allocations: 0.9777 MB / 0.6738 GB, free: 44.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.4913, allocations: 8.031 kB / 0.6738 GB, free: 44.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002109/0.4934, allocations: 183.5 kB / 0.6739 GB, free: 44.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006137/0.4941, allocations: 341.2 kB / 0.6743 GB, free: 43.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/0.4941, allocations: 24.56 kB / 0.6743 GB, free: 43.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.699e-05/0.4942, allocations: 24 kB / 0.6743 GB, free: 43.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/0.496, allocations: 0.4911 MB / 0.6748 GB, free: 43.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.496, allocations: 4 kB / 0.6748 GB, free: 43.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.366e-05/0.4961, allocations: 12.84 kB / 0.6748 GB, free: 43.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.4961, allocations: 4 kB / 0.6748 GB, free: 43.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/0.4981, allocations: 441.2 kB / 0.6752 GB, free: 42.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003125/0.5012, allocations: 2.321 MB / 0.6775 GB, free: 40.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001628/0.5029, allocations: 321.7 kB / 0.6778 GB, free: 39.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003871/0.5033, allocations: 113.1 kB / 0.6779 GB, free: 39.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06014/0.5635, allocations: 15.87 MB / 0.6934 GB, free: 22.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.5635, allocations: 46.48 kB / 0.6934 GB, free: 22.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.916e-06/0.5636, allocations: 0 / 0.6934 GB, free: 22.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.002709/0.5663, allocations: 0.5165 MB / 0.694 GB, free: 21.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.5663, allocations: 114.8 kB / 0.6941 GB, free: 21.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.5667, allocations: 271.2 kB / 0.6943 GB, free: 21.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.5667, allocations: 33.7 kB / 0.6944 GB, free: 21.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.5669, allocations: 215.4 kB / 0.6946 GB, free: 21.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.5669, allocations: 51.23 kB / 0.6946 GB, free: 21.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.145e-05/0.567, allocations: 8 kB / 0.6946 GB, free: 21.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.859e-05/0.5671, allocations: 338.8 kB / 0.6949 GB, free: 20.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004032/0.5675, allocations: 100.5 kB / 0.695 GB, free: 20.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004757/0.568, allocations: 239.9 kB / 0.6953 GB, free: 20.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000454/0.5684, allocations: 119.9 kB / 0.6954 GB, free: 20.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.5685, allocations: 4 kB / 0.6954 GB, free: 20.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001149/0.5696, allocations: 361.5 kB / 0.6957 GB, free: 19.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.5697, allocations: 8.594 kB / 0.6957 GB, free: 19.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.5697, allocations: 8 kB / 0.6957 GB, free: 19.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/0.5697, allocations: 8 kB / 0.6957 GB, free: 19.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/0.5702, allocations: 79.89 kB / 0.6958 GB, free: 19.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.5703, allocations: 15.83 kB / 0.6958 GB, free: 19.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000412/0.5707, allocations: 67.19 kB / 0.6959 GB, free: 19.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.5707, allocations: 12 kB / 0.6959 GB, free: 19.77 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (34): * Single equations (assignments): 34 * 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.0002159/0.571, allocations: 159.8 kB / 0.6961 GB, free: 19.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.642e-05/0.571, allocations: 23.72 kB / 0.6961 GB, free: 19.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001758/0.5728, allocations: 0.967 MB / 0.697 GB, free: 18.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.5728, allocations: 0 / 0.697 GB, free: 18.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.5729, allocations: 0 / 0.697 GB, free: 18.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.573, allocations: 172.2 kB / 0.6972 GB, free: 18.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.854e-05/0.5731, allocations: 4 kB / 0.6972 GB, free: 18.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004015/0.5735, allocations: 39.97 kB / 0.6972 GB, free: 18.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.336e-05/0.5736, allocations: 15.97 kB / 0.6973 GB, free: 18.37 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001063/0.5747, allocations: 0.5192 MB / 0.6978 GB, free: 17.84 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0009669/0.5757, allocations: 0.6198 MB / 0.6984 GB, free: 17.2 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004244/0.5761, allocations: 204.4 kB / 0.6986 GB, free: 17 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002905/0.5764, allocations: 231.2 kB / 0.6988 GB, free: 16.78 MB / 362.7 MB Notification: Performance of Backend: time 1.663e-06/0.5765, allocations: 4 kB / 0.6988 GB, free: 16.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008008/0.5845, allocations: 1.383 MB / 0.7001 GB, free: 15.42 MB / 362.7 MB Notification: Performance of SimCode: time 0.001911/0.5864, allocations: 1.367 MB / 0.7015 GB, free: 14.01 MB / 362.7 MB Notification: Performance of Templates: time 0.07697/0.6634, allocations: 36.76 MB / 0.7374 GB, free: 9.559 MB / 394.7 MB "" Variables in the reference:time,specificEntropy.s,specificEntropy1.s Variables in the result:boundary_prescriberho_1.X[1],boundary_prescriberho_1.flowDirection,boundary_prescriberho_1.h,boundary_prescriberho_1.medium.preferredMediumStates,boundary_prescriberho_1.medium.standardOrderComponents,boundary_prescriberho_1.nPorts,boundary_prescriberho_1.p,boundary_prescriberho_2.X[1],boundary_prescriberho_2.flowDirection,boundary_prescriberho_2.h,boundary_prescriberho_2.medium.preferredMediumStates,boundary_prescriberho_2.medium.standardOrderComponents,boundary_prescriberho_2.nPorts,boundary_prescriberho_2.p,sine1.amplitude,sine1.freqHz,sine1.offset,sine1.phase,sine1.startTime,specificEntropy.s,specificEntropy1.allowFlowReversal,specificEntropy1.m_flow_nominal,specificEntropy1.m_flow_small,specificEntropy1.port_a_exposesState,specificEntropy1.port_b_exposesState,specificEntropy1.s,specificEntropy1.showDesignFlowDirection,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time