Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestTemperature2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestTemperature2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002258/0.002257, allocations: 186.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001325/0.001324, allocations: 84.5 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5325/0.5325, allocations: 43.55 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005437/0.0005436, allocations: 12 kB / 431.5 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1353, allocations: 58.85 MB / 490.3 MB, free: 10.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.829/8.964, allocations: 2.765 GB / 3.244 GB, free: 45.16 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/8.964, allocations: 90.39 kB / 3.244 GB, free: 45.11 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 4.511/13.48, allocations: 0.81 GB / 4.054 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.757e-06/13.48, allocations: 0 / 4.054 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001879/13.48, allocations: 46.5 kB / 4.054 GB, free: 31.97 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 441 * Number of variables: 441 Notification: Performance of Generate backend data structure: time 0.01525/13.49, allocations: 3.108 MB / 4.057 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/13.49, allocations: 11.78 kB / 4.057 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001305/13.49, allocations: 262.5 kB / 4.058 GB, free: 30.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/13.5, allocations: 0.845 MB / 4.058 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004079/13.51, allocations: 1.106 MB / 4.06 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005312/13.51, allocations: 460.2 kB / 4.06 GB, free: 28.99 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007542/13.51, allocations: 179 kB / 4.06 GB, free: 28.93 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/13.52, allocations: 3.196 MB / 4.063 GB, free: 27.23 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.701e-05/13.52, allocations: 15.81 kB / 4.063 GB, free: 27.22 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004301/13.52, allocations: 91.89 kB / 4.063 GB, free: 27.13 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/13.52, allocations: 78.44 kB / 4.063 GB, free: 27.05 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01223/13.53, allocations: 2.766 MB / 4.066 GB, free: 24.82 MB / 0.5261 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.02674/13.56, allocations: 15.75 MB / 4.082 GB, free: 8.855 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007135/13.57, allocations: 1.447 MB / 4.083 GB, free: 7.391 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00155/13.57, allocations: 0.6851 MB / 4.084 GB, free: 6.605 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.176e-05/13.57, allocations: 51.56 kB / 4.084 GB, free: 6.547 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=101): time 3.437e-06/13.57, allocations: 0 / 4.084 GB, free: 6.547 MB / 0.5261 GB Notification: Performance of matching and sorting (n=117): time 0.02911/13.6, allocations: 5.383 MB / 4.089 GB, free: 1.113 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.873e-05/13.6, allocations: 167.2 kB / 4.089 GB, free: 0.9141 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002787/13.6, allocations: 1.27 MB / 4.09 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003939/13.6, allocations: 49.7 kB / 4.09 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001037/13.6, allocations: 0.9253 MB / 4.091 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007386/13.6, allocations: 427.2 kB / 4.092 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002041/13.6, allocations: 44 kB / 4.092 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002615/13.6, allocations: 399.4 kB / 4.092 GB, free: 13.81 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003312/13.61, allocations: 0.7111 MB / 4.093 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004509/13.61, allocations: 1.938 MB / 4.095 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004107/13.62, allocations: 1.029 MB / 4.096 GB, free: 9.512 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-05/13.62, allocations: 15.95 kB / 4.096 GB, free: 9.496 MB / 0.5417 GB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01115/13.63, allocations: 2.808 MB / 4.098 GB, free: 6.668 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.571e-05/13.63, allocations: 25 kB / 4.098 GB, free: 6.645 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.321e-05/13.63, allocations: 44.06 kB / 4.098 GB, free: 6.602 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/13.63, allocations: 448.8 kB / 4.099 GB, free: 6.156 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003601/13.63, allocations: 0.5186 MB / 4.099 GB, free: 5.637 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003375/13.64, allocations: 2.741 MB / 4.102 GB, free: 2.797 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00393/13.64, allocations: 227.8 kB / 4.102 GB, free: 2.574 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005931/13.64, allocations: 144 kB / 4.102 GB, free: 2.434 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 193 * Number of states: 0 () * Number of discrete variables: 28 (sink2.medium.phase,source2.medium.phase,sink1.medium.phase,source1.medium.phase,volume1_1.heatTransfer.states[1].phase,volume1_2.heatTransfer.states[1].phase,volume2_1.heatTransfer.states[1].phase,volume2_2.heatTransfer.states[1].phase,volume1_1.regularFlow[1],volume1_1.regularFlow[2],volume1_1.regularFlow[3],volume1_2.regularFlow[1],volume1_2.regularFlow[2],volume1_2.regularFlow[3],volume2_1.regularFlow[1],volume2_1.regularFlow[2],volume2_2.regularFlow[1],volume2_2.regularFlow[2],volume2_2.inFlow[2],volume2_2.inFlow[1],volume2_1.inFlow[2],volume2_1.inFlow[1],volume1_2.inFlow[3],volume1_2.inFlow[2],volume1_2.inFlow[1],volume1_1.inFlow[3],volume1_1.inFlow[2],volume1_1.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 261 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 7,1 7,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001634/13.64, allocations: 0.5344 MB / 4.103 GB, free: 1.891 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000554/13.64, allocations: 173.9 kB / 4.103 GB, free: 1.719 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4778/14.12, allocations: 5.075 MB / 4.108 GB, free: 51.35 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.3e-05/14.12, allocations: 46.48 kB / 4.108 GB, free: 51.35 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/14.12, allocations: 0.5156 kB / 4.108 GB, free: 51.35 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.86e-05/14.12, allocations: 5.812 kB / 4.108 GB, free: 51.35 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01719/14.14, allocations: 7.176 MB / 4.115 GB, free: 50.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/14.14, allocations: 2.406 kB / 4.115 GB, free: 50.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001948/14.14, allocations: 278.7 kB / 4.115 GB, free: 50.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002155/14.14, allocations: 438 kB / 4.116 GB, free: 50.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000242/14.14, allocations: 32.72 kB / 4.116 GB, free: 50.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00305/14.15, allocations: 2.778 MB / 4.119 GB, free: 48.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/14.15, allocations: 3.5 kB / 4.119 GB, free: 48.72 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0118/14.16, allocations: 4.334 MB / 4.123 GB, free: 48.11 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/14.16, allocations: 0.5586 MB / 4.123 GB, free: 48.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008003/14.16, allocations: 27.58 kB / 4.123 GB, free: 48.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002912/14.16, allocations: 147.9 kB / 4.124 GB, free: 48 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005648/14.16, allocations: 122 kB / 4.124 GB, free: 48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/14.16, allocations: 44.83 kB / 4.124 GB, free: 48 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003161/14.17, allocations: 1.215 MB / 4.125 GB, free: 47.85 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.473e-06/14.17, allocations: 1.859 kB / 4.125 GB, free: 47.85 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009112/14.18, allocations: 1.488 MB / 4.126 GB, free: 47.85 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (volume1_1.medium.h,volume1_2.medium.h,volume2_1.medium.h,volume2_2.medium.h) * Number of discrete variables: 32 ($cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,volume1_1.heatTransfer.states[1].phase,source1.medium.phase,volume1_2.heatTransfer.states[1].phase,sink1.medium.phase,volume2_1.heatTransfer.states[1].phase,source2.medium.phase,volume2_2.heatTransfer.states[1].phase,sink2.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 5,2 5,2 5,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02302/14.2, allocations: 7.493 MB / 4.134 GB, free: 45.89 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007368/14.21, allocations: 2.287 MB / 4.136 GB, free: 45.85 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/14.21, allocations: 2.047 kB / 4.136 GB, free: 45.85 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003996/14.21, allocations: 1.369 MB / 4.137 GB, free: 45.84 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007892/14.22, allocations: 0.8709 MB / 4.138 GB, free: 45.83 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0486/14.27, allocations: 43.15 MB / 4.18 GB, free: 27.12 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/14.27, allocations: 1.687 MB / 4.182 GB, free: 26.39 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001716/14.27, allocations: 0.9528 MB / 4.183 GB, free: 26.38 MB / 0.5574 GB Notification: Performance of SimCode: time 1.262e-06/14.27, allocations: 0 / 4.183 GB, free: 26.38 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.816/19.09, allocations: 91.96 MB / 4.273 GB, free: 21.04 MB / 0.5574 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestTemperature2_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestTemperature2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2_res.mat does not exist to compare? outputFormat=mat