Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.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) 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(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",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.002062/0.002066, allocations: 180.9 kB / 13.66 MB, free: 1.664 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.396/2.396, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001104/0.001103, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.839e-05/3.87e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.0994, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4169/0.5163, allocations: 79.53 MB / 448.7 MB, free: 13.3 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.5167, allocations: 66.31 kB / 448.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03329/0.55, allocations: 7.963 MB / 456.7 MB, free: 6.484 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.55, allocations: 0 / 456.7 MB, free: 6.484 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.26e-05/0.5501, allocations: 12 kB / 456.8 MB, free: 6.473 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001294/0.5514, allocations: 0.6193 MB / 457.4 MB, free: 5.844 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.5515, allocations: 8.031 kB / 457.4 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.5516, allocations: 77.83 kB / 457.5 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.5518, allocations: 59.34 kB / 457.5 MB, free: 5.715 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007678/0.5526, allocations: 357.1 kB / 457.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.5526, allocations: 34.02 kB / 457.9 MB, free: 5.344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.625e-05/0.5527, allocations: 44.97 kB / 457.9 MB, free: 5.312 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.5538, allocations: 477 kB / 458.4 MB, free: 4.875 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.177e-05/0.5538, allocations: 3.938 kB / 458.4 MB, free: 4.871 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.496e-05/0.5539, allocations: 19 kB / 458.4 MB, free: 4.863 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.5539, allocations: 8 kB / 458.4 MB, free: 4.855 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006769/0.5546, allocations: 228.8 kB / 458.7 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003419/0.558, allocations: 2.795 MB / 461.5 MB, free: 2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006208/0.5587, allocations: 158 kB / 461.6 MB, free: 1.883 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.5589, allocations: 67.89 kB / 461.7 MB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001864/0.5591, allocations: 92.98 kB / 461.8 MB, free: 1.727 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.5591, allocations: 30.56 kB / 461.8 MB, free: 1.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 2.976e-06/0.5592, allocations: 0 / 461.8 MB, free: 1.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.001558/0.5607, allocations: 0.5568 MB / 462.4 MB, free: 1.148 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.5608, allocations: 51.41 kB / 462.4 MB, free: 1.086 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004935/0.5613, allocations: 299.6 kB / 462.7 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.5613, allocations: 29.27 kB / 462.7 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002615/0.5616, allocations: 352.8 kB / 463.1 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.444e-05/0.5617, allocations: 60.86 kB / 463.1 MB, free: 476 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.5617, allocations: 10.69 kB / 463.1 MB, free: 472 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.5619, allocations: 333.3 kB / 463.5 MB, free: 136 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.5621, allocations: 62.58 kB / 463.5 MB, free: 92 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.5624, allocations: 203.4 kB / 463.7 MB, free: 15.83 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacity.heatFlowToTemperature.y = $START.directCapacity.heatFlowToTemperature.y ($START.inverseCapacity.mass.T = $START.directCapacity.heatFlowToTemperature.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.0009667/0.5634, allocations: 262.6 kB / 464 MB, free: 15.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.5634, allocations: 4 kB / 464 MB, free: 15.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008178/0.5643, allocations: 315.3 kB / 464.3 MB, free: 15.24 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.5643, allocations: 8 kB / 464.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.5643, allocations: 4 kB / 464.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002104/0.5646, allocations: 40.84 kB / 464.3 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004654/0.565, allocations: 71.84 kB / 464.4 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.5668, allocations: 1.464 MB / 465.9 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003644/0.5672, allocations: 19.91 kB / 465.9 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.094e-05/0.5673, allocations: 27.97 kB / 465.9 MB, free: 13.47 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: directCapacity.heatFlowToTemperature.y = $START.directCapacity.heatFlowToTemperature.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000174/0.5675, allocations: 130.7 kB / 466.1 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-05/0.5676, allocations: 35.56 kB / 466.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.5677, allocations: 43.33 kB / 466.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.5677, allocations: 0 / 466.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5677, allocations: 0 / 466.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.5678, allocations: 7.984 kB / 466.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.5692, allocations: 0.6443 MB / 466.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.5692, allocations: 0 / 466.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003568/0.5696, allocations: 39.91 kB / 466.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001343/0.5697, allocations: 20.86 kB / 466.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.5698, allocations: 4 kB / 466.8 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.5712, allocations: 1.328 MB / 468.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.5712, allocations: 3.938 kB / 468.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000735/0.572, allocations: 361.6 kB / 468.5 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.5721, allocations: 104.7 kB / 468.6 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.5722, allocations: 11.95 kB / 468.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.5724, allocations: 11.94 kB / 468.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.5725, allocations: 15.98 kB / 468.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.5725, allocations: 4 kB / 468.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000386/0.5729, allocations: 233.2 kB / 468.9 MB, free: 10.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.573, allocations: 4 kB / 468.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006109/0.5736, allocations: 68 kB / 469 MB, free: 10.17 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inverseCapacity.mass.T,capacitor3a.T,capacitor3b.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001164/0.5747, allocations: 0.9564 MB / 469.9 MB, free: 9.176 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007924/0.5756, allocations: 299.5 kB / 470.2 MB, free: 8.871 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5756, allocations: 0 / 470.2 MB, free: 8.871 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.5759, allocations: 174.5 kB / 470.4 MB, free: 8.688 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003852/0.5763, allocations: 41.61 kB / 470.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/0.5786, allocations: 0.7477 MB / 471.2 MB, free: 7.852 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005712/0.5792, allocations: 0.8265 MB / 472 MB, free: 6.996 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/0.5795, allocations: 159.4 kB / 472.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.553e-06/0.5796, allocations: 0 / 472.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.953/3.533, allocations: 7.975 MB / 480.1 MB, free: 14.86 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat