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.002564/0.002569, allocations: 182.1 kB / 16.4 MB, free: 5.754 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.069/2.069, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001148/0.001147, allocations: 93.5 kB / 270.9 MB, free: 8.352 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.5234/0.5234, allocations: 43.57 MB / 362.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006899/0.0006903, allocations: 12 kB / 431.5 MB, free: 5.816 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1367, allocations: 58.85 MB / 490.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2): time 0.41/0.5468, allocations: 63.41 MB / 0.5408 GB, free: 6.055 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05168/0.5985, allocations: 28.48 MB / 0.5686 GB, free: 2.062 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002994/0.6015, allocations: 50.75 kB / 0.5686 GB, free: 2.035 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004774/0.6064, allocations: 0.9049 MB / 0.5695 GB, free: 1.52 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.019/0.6254, allocations: 4.011 MB / 0.5734 GB, free: 15.36 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02389/0.6493, allocations: 5.297 MB / 0.5786 GB, free: 11.37 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007652/0.657, allocations: 2.988 MB / 0.5815 GB, free: 9.445 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002712/0.6598, allocations: 1.084 MB / 0.5826 GB, free: 8.754 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0228/0.6826, allocations: 7.196 MB / 0.5896 GB, free: 4.684 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003399/0.6861, allocations: 1.051 MB / 0.5906 GB, free: 3.629 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007474/0.6869, allocations: 103.9 kB / 0.5907 GB, free: 3.527 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02346/0.7104, allocations: 6.992 MB / 0.5975 GB, free: 12.53 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001571/0.712, allocations: 0.5805 MB / 0.5981 GB, free: 11.95 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.7133, allocations: 408.8 kB / 0.5985 GB, free: 11.54 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01301/0.7263, allocations: 4.576 MB / 0.603 GB, free: 6.953 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.7264, allocations: 0 / 0.603 GB, free: 6.953 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.7264, allocations: 0 / 0.603 GB, free: 6.953 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001023/0.7265, allocations: 0 / 0.603 GB, free: 6.953 MB / 426.7 MB 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.01034/0.7368, allocations: 2.471 MB / 0.6054 GB, free: 4.426 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.7369, allocations: 12.03 kB / 0.6054 GB, free: 4.414 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008903/0.7378, allocations: 269.1 kB / 0.6056 GB, free: 4.141 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009535/0.7474, allocations: 0.8408 MB / 0.6065 GB, free: 3.297 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003424/0.7508, allocations: 1.025 MB / 0.6075 GB, free: 2.227 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006441/0.7515, allocations: 460.4 kB / 0.6079 GB, free: 1.715 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006107/0.7522, allocations: 171.9 kB / 0.6081 GB, free: 1.547 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.7641, allocations: 3.174 MB / 0.6112 GB, free: 14.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.039e-05/0.7643, allocations: 19.83 kB / 0.6112 GB, free: 14.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004006/0.7647, allocations: 87.98 kB / 0.6113 GB, free: 14.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001663/0.7649, allocations: 78.72 kB / 0.6113 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01279/0.7777, allocations: 2.8 MB / 0.6141 GB, free: 11.12 MB / 442.7 MB 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.02985/0.8076, allocations: 15.8 MB / 0.6295 GB, free: 10.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007584/0.8152, allocations: 1.475 MB / 0.631 GB, free: 8.746 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001953/0.8172, allocations: 0.7025 MB / 0.6316 GB, free: 7.934 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.227e-05/0.8173, allocations: 55.56 kB / 0.6317 GB, free: 7.871 MB / 458.7 MB Notification: Performance of pre-optimization done (n=101): time 3.336e-06/0.8173, allocations: 3.938 kB / 0.6317 GB, free: 7.867 MB / 458.7 MB Notification: Performance of matching and sorting (n=117): time 0.03057/0.8479, allocations: 5.494 MB / 0.6371 GB, free: 2.297 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.8481, allocations: 171.2 kB / 0.6372 GB, free: 2.094 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002989/0.8511, allocations: 1.449 MB / 0.6386 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003006/0.8515, allocations: 49.7 kB / 0.6387 GB, free: 0.5781 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009535/0.8524, allocations: 0.9191 MB / 0.6396 GB, free: 15.65 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006484/0.8531, allocations: 422.2 kB / 0.64 GB, free: 15.23 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.8533, allocations: 48 kB / 0.64 GB, free: 15.18 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.8535, allocations: 403.4 kB / 0.6404 GB, free: 14.78 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003199/0.8567, allocations: 0.7111 MB / 0.6411 GB, free: 14.07 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004333/0.8611, allocations: 1.946 MB / 0.643 GB, free: 11.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003885/0.8651, allocations: 1.032 MB / 0.644 GB, free: 10.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.684e-05/0.8651, allocations: 15.94 kB / 0.644 GB, free: 10.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01044/0.8756, allocations: 2.812 MB / 0.6468 GB, free: 7.633 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.525e-05/0.8757, allocations: 20 kB / 0.6468 GB, free: 7.613 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.686e-05/0.8758, allocations: 44 kB / 0.6468 GB, free: 7.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/0.8781, allocations: 451.8 kB / 0.6473 GB, free: 7.117 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003528/0.8816, allocations: 0.5498 MB / 0.6478 GB, free: 6.566 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003307/0.885, allocations: 2.744 MB / 0.6505 GB, free: 3.719 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003373/0.8884, allocations: 227.7 kB / 0.6507 GB, free: 3.496 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000442/0.8889, allocations: 147.9 kB / 0.6508 GB, free: 3.352 MB / 474.7 MB 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.001448/0.8904, allocations: 0.5396 MB / 0.6514 GB, free: 2.801 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005009/0.8909, allocations: 173.9 kB / 0.6515 GB, free: 2.629 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/0.9038, allocations: 5.094 MB / 0.6565 GB, free: 13.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.005e-05/0.9039, allocations: 43.94 kB / 0.6566 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.9039, allocations: 4.875 kB / 0.6566 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.874e-05/0.9039, allocations: 7.969 kB / 0.6566 GB, free: 13.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01835/0.9223, allocations: 7.212 MB / 0.6636 GB, free: 6.051 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.802e-05/0.9224, allocations: 4 kB / 0.6636 GB, free: 6.047 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002197/0.9246, allocations: 295.8 kB / 0.6639 GB, free: 5.758 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/0.927, allocations: 443 kB / 0.6643 GB, free: 5.312 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002172/0.9272, allocations: 32.25 kB / 0.6644 GB, free: 5.281 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003489/0.9307, allocations: 2.791 MB / 0.6671 GB, free: 2.387 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.9308, allocations: 4 kB / 0.6671 GB, free: 2.383 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/0.9428, allocations: 4.353 MB / 0.6713 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001614/0.9445, allocations: 0.5594 MB / 0.6719 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005293/0.9451, allocations: 27.98 kB / 0.6719 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002482/0.9476, allocations: 147.6 kB / 0.672 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004174/0.948, allocations: 112.8 kB / 0.6722 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/0.9482, allocations: 51.97 kB / 0.6722 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002894/0.9511, allocations: 1.213 MB / 0.6734 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.81e-07/0.9512, allocations: 4 kB / 0.6734 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006468/0.9577, allocations: 1.406 MB / 0.6748 GB, free: 10.28 MB / 0.4948 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.02078/0.9785, allocations: 6.82 MB / 0.6814 GB, free: 3.316 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008358/0.9869, allocations: 2.301 MB / 0.6837 GB, free: 1.012 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.479e-05/0.987, allocations: 4.875 kB / 0.6837 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.3259/1.313, allocations: 1.37 MB / 0.685 GB, free: 157.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008111/1.321, allocations: 0.8639 MB / 0.6859 GB, free: 157.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04706/1.368, allocations: 43.15 MB / 0.728 GB, free: 122.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001616/1.37, allocations: 1.677 MB / 0.7296 GB, free: 122 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00198/1.372, allocations: 0.9546 MB / 0.7306 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.623e-06/1.372, allocations: 0 / 0.7306 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.135/6.507, allocations: 89.7 MB / 0.8182 GB, free: 58.2 MB / 0.4948 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