Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.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.TestTemperature1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1.T|Tmix2.T|Tdiff|volume1.medium.h|volume2.medium.h",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1.T|Tmix2.T|Tdiff|volume1.medium.h|volume2.medium.h",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.2 MB / 245 MB, free: 7.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001056/0.001056, allocations: 104.3 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3387/0.3387, allocations: 45.23 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002625, allocations: 8 kB / 468.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3856/0.3859, allocations: 63.24 MB / 0.5192 GB, free: 43.68 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.452/5.838, allocations: 2.776 GB / 3.296 GB, free: 149.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/5.839, allocations: 94.09 kB / 3.296 GB, free: 149.9 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 2.412/8.251, allocations: 0.751 GB / 4.047 GB, free: 50.56 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.244e-06/8.251, allocations: 0 / 4.047 GB, free: 50.56 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.000151/8.251, allocations: 39.27 kB / 4.047 GB, free: 50.55 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 321 * Number of variables: 321 Notification: Performance of Generate backend data structure: time 0.01142/8.263, allocations: 2.804 MB / 4.049 GB, free: 49.15 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/8.263, allocations: 9.75 kB / 4.049 GB, free: 49.15 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006368/8.269, allocations: 0.7391 MB / 4.05 GB, free: 49.07 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003142/8.272, allocations: 0.9563 MB / 4.051 GB, free: 48.77 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002953/8.272, allocations: 229.2 kB / 4.051 GB, free: 48.64 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005049/8.273, allocations: 126.9 kB / 4.051 GB, free: 48.63 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006299/8.279, allocations: 2.304 MB / 4.054 GB, free: 48.09 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-05/8.279, allocations: 11.25 kB / 4.054 GB, free: 48.09 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003749/8.28, allocations: 62.53 kB / 4.054 GB, free: 48.09 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.997e-05/8.28, allocations: 56.19 kB / 4.054 GB, free: 48.09 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005162/8.285, allocations: 2.03 MB / 4.056 GB, free: 48.07 MB / 0.5573 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01246/8.298, allocations: 10.81 MB / 4.066 GB, free: 40.75 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003511/8.301, allocations: 1.271 MB / 4.068 GB, free: 40.71 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009683/8.302, allocations: 0.6915 MB / 4.068 GB, free: 40.14 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/8.302, allocations: 45.84 kB / 4.068 GB, free: 40.11 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008882/8.303, allocations: 136.3 kB / 4.068 GB, free: 40.04 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 5.33e-06/8.303, allocations: 2.156 kB / 4.068 GB, free: 40.04 MB / 0.5573 GB Notification: Performance of matching and sorting (n=96): time 0.01237/8.315, allocations: 4.175 MB / 4.072 GB, free: 39.47 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/8.316, allocations: 168.5 kB / 4.073 GB, free: 39.29 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001432/8.317, allocations: 0.8486 MB / 4.073 GB, free: 39.12 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001148/8.317, allocations: 48.11 kB / 4.073 GB, free: 39.09 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004655/8.318, allocations: 0.6595 MB / 4.074 GB, free: 38.75 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002583/8.318, allocations: 347.4 kB / 4.074 GB, free: 38.54 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.218e-05/8.318, allocations: 31.28 kB / 4.074 GB, free: 38.54 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001064/8.318, allocations: 362.8 kB / 4.075 GB, free: 38.23 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/8.319, allocations: 0.5078 MB / 4.075 GB, free: 38.23 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/8.321, allocations: 1.155 MB / 4.076 GB, free: 37.43 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001313/8.322, allocations: 0.6833 MB / 4.077 GB, free: 37.4 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/8.322, allocations: 3.281 kB / 4.077 GB, free: 37.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003549/8.325, allocations: 1.836 MB / 4.079 GB, free: 37.06 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001821/8.327, allocations: 8.098 MB / 4.087 GB, free: 28.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.848e-05/8.327, allocations: 19.03 kB / 4.087 GB, free: 28.48 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005561/8.328, allocations: 132.3 kB / 4.087 GB, free: 28.44 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/8.329, allocations: 414.1 kB / 4.087 GB, free: 28.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005968/8.33, allocations: 1.205 MB / 4.089 GB, free: 27.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/8.331, allocations: 172.2 kB / 4.089 GB, free: 27.24 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/8.332, allocations: 91.55 kB / 4.089 GB, free: 27.22 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/8.332, allocations: 6.969 kB / 4.089 GB, free: 27.22 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003029/8.335, allocations: 1.67 MB / 4.09 GB, free: 26.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.554e-05/8.335, allocations: 20.69 kB / 4.09 GB, free: 26.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004379/8.335, allocations: 145.6 kB / 4.091 GB, free: 26.57 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/8.336, allocations: 401.7 kB / 4.091 GB, free: 26.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005757/8.337, allocations: 1.207 MB / 4.092 GB, free: 25.42 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/8.339, allocations: 174.9 kB / 4.092 GB, free: 25.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/8.339, allocations: 95.86 kB / 4.092 GB, free: 25.36 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * Number of states: 0 () * Number of discrete variables: 18 (sink2.medium.phase,sink1.medium.phase,volume1.heatTransfer.states[1].phase,source1.medium.phase,volume2.heatTransfer.states[1].phase,source2.medium.phase,volume1.regularFlow[1],volume1.regularFlow[2],volume2.regularFlow[1],volume2.regularFlow[2],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[2],volume1.inFlow[1],orifice2.state_b.phase,orifice2.state_a.phase,orifice1.state_b.phase,orifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 188 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007948/8.34, allocations: 452.5 kB / 4.093 GB, free: 25.03 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002741/8.34, allocations: 132.5 kB / 4.093 GB, free: 24.96 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005941/8.346, allocations: 5.066 MB / 4.098 GB, free: 22.77 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.002e-05/8.346, allocations: 72.75 kB / 4.098 GB, free: 22.74 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/8.346, allocations: 0 / 4.098 GB, free: 22.74 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/8.346, allocations: 7.359 kB / 4.098 GB, free: 22.74 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009728/8.356, allocations: 7.08 MB / 4.105 GB, free: 19.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/8.356, allocations: 0 / 4.105 GB, free: 19.52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000984/8.357, allocations: 273.1 kB / 4.105 GB, free: 19.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007148/8.357, allocations: 182.4 kB / 4.105 GB, free: 19.43 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.339e-05/8.358, allocations: 23.28 kB / 4.105 GB, free: 19.42 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005706/8.358, allocations: 1.237 MB / 4.107 GB, free: 18.28 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/8.358, allocations: 3.672 kB / 4.107 GB, free: 18.28 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0058/8.364, allocations: 4.173 MB / 4.111 GB, free: 16.43 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/8.365, allocations: 0.508 MB / 4.111 GB, free: 16.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004017/8.366, allocations: 23.41 kB / 4.111 GB, free: 16.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/8.367, allocations: 129.5 kB / 4.111 GB, free: 16.02 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/8.367, allocations: 97.16 kB / 4.111 GB, free: 16.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/8.367, allocations: 44.03 kB / 4.111 GB, free: 16 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001366/8.369, allocations: 0.8409 MB / 4.112 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.363e-06/8.369, allocations: 0 / 4.112 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0085/8.377, allocations: 1.653 MB / 4.114 GB, free: 15.36 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume1.medium.p,volume1.medium.h,volume2.medium.p,volume2.medium.h) * Number of discrete variables: 40 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,volume1.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,volume2.heatTransfer.states[1].phase,source2.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009634/8.387, allocations: 1.973 MB / 4.116 GB, free: 14.82 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005861/8.393, allocations: 2.777 MB / 4.119 GB, free: 13.88 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/8.393, allocations: 3.875 kB / 4.119 GB, free: 13.88 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001965/8.395, allocations: 1.359 MB / 4.12 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/8.398, allocations: 0.6133 MB / 4.12 GB, free: 13.14 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007287/8.406, allocations: 5.316 MB / 4.126 GB, free: 9.148 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/8.407, allocations: 1.594 MB / 4.127 GB, free: 7.828 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003025/8.41, allocations: 1.644 MB / 4.129 GB, free: 6.879 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004289/8.41, allocations: 130.6 kB / 4.129 GB, free: 6.758 MB / 0.5573 GB Notification: Performance of SimCode: time 9.32e-07/8.41, allocations: 0 / 4.129 GB, free: 6.758 MB / 0.5573 GB Notification: Performance of Templates: time 0.4485/8.859, allocations: 57.33 MB / 4.185 GB, free: 63.2 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTemperature1/TestTemperature1.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches