Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 114.4 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 43.92 kB / 280.2 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07736/0.07847, allocations: 46.63 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.003823/0.08233, allocations: 3.088 MB / 330 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.08382, allocations: 0.9718 MB / 330.9 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.08398, allocations: 11.94 kB / 330.9 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.08423, allocations: 75.36 kB / 331 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.08439, allocations: 79.25 kB / 331.1 MB, free: 448 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004141/0.08481, allocations: 183.9 kB / 331.3 MB, free: 264 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.08531, allocations: 0.5566 MB / 331.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000312/0.08563, allocations: 218.7 kB / 332 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.08583, allocations: 179.2 kB / 332.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.08601, allocations: 175 kB / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.777e-05/0.08606, allocations: 36 kB / 332.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.08617, allocations: 51.98 kB / 332.5 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.304e-05/0.08624, allocations: 95.62 kB / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.08641, allocations: 218.7 kB / 332.8 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.08687, allocations: 0.5607 MB / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.08688, allocations: 0 / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.08689, allocations: 0 / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.0869, allocations: 0 / 333.3 MB, free: 14.18 MB / 286.1 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.0008713/0.08778, allocations: 0.7522 MB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.08782, allocations: 8.031 kB / 334.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.024e-05/0.08791, allocations: 74.72 kB / 334.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.355e-05/0.08799, allocations: 63.84 kB / 334.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/0.08845, allocations: 398.4 kB / 334.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.08849, allocations: 32.98 kB / 334.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.491e-05/0.08855, allocations: 40 kB / 334.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006955/0.08925, allocations: 499.2 kB / 335.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.08928, allocations: 0 / 335.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.787e-05/0.08932, allocations: 20 kB / 335.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.08934, allocations: 8 kB / 335.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004384/0.08978, allocations: 250.1 kB / 335.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.09174, allocations: 2.827 MB / 338.3 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003966/0.09215, allocations: 162.6 kB / 338.4 MB, free: 8.742 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.09228, allocations: 72.88 kB / 338.5 MB, free: 8.668 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001871/0.09248, allocations: 81.11 kB / 338.6 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.09251, allocations: 38.5 kB / 338.6 MB, free: 8.523 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.09252, allocations: 0 / 338.6 MB, free: 8.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001151/0.09368, allocations: 0.6262 MB / 339.3 MB, free: 7.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.09372, allocations: 59.34 kB / 339.3 MB, free: 7.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003084/0.09403, allocations: 345.5 kB / 339.7 MB, free: 7.422 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.09406, allocations: 25.7 kB / 339.7 MB, free: 7.391 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.09423, allocations: 311 kB / 340 MB, free: 7.082 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.602e-05/0.09428, allocations: 63.11 kB / 340 MB, free: 7.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.732e-05/0.09437, allocations: 73.56 kB / 340.1 MB, free: 6.941 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.09451, allocations: 354.7 kB / 340.5 MB, free: 6.586 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.09464, allocations: 67.75 kB / 340.5 MB, free: 6.52 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.09486, allocations: 211.6 kB / 340.7 MB, free: 6.242 MB / 286.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacity.mass.T = $START.inverseCapacity.mass.T ($START.directCapacity.heatFlowToTemperature.y = $START.inverseCapacity.mass.T) Notification: Performance of analyzeInitialSystem (initialization): time 0.000891/0.09576, allocations: 0.512 MB / 341.2 MB, free: 5.641 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.09577, allocations: 4 kB / 341.3 MB, free: 5.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005395/0.09632, allocations: 361.4 kB / 341.6 MB, free: 5.273 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.09635, allocations: 11.12 kB / 341.6 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.09636, allocations: 4 kB / 341.6 MB, free: 5.262 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001462/0.09652, allocations: 41.47 kB / 341.7 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.09676, allocations: 71.84 kB / 341.7 MB, free: 5.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.09818, allocations: 1.639 MB / 343.4 MB, free: 3.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.09836, allocations: 16 kB / 343.4 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.09839, allocations: 19.98 kB / 343.4 MB, free: 3.332 MB / 286.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: inverseCapacity.mass.T = $START.inverseCapacity.mass.T. 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001839/0.09858, allocations: 173.7 kB / 343.6 MB, free: 3.152 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-05/0.09864, allocations: 39.47 kB / 343.6 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.504e-05/0.09871, allocations: 39.59 kB / 343.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.09872, allocations: 0 / 343.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.09873, allocations: 0 / 343.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.09874, allocations: 3.984 kB / 343.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008801/0.09963, allocations: 0.7112 MB / 344.4 MB, free: 2.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.09964, allocations: 0 / 344.4 MB, free: 2.285 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.09982, allocations: 39.91 kB / 344.4 MB, free: 2.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.322e-05/0.0999, allocations: 20.86 kB / 344.4 MB, free: 2.223 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.09993, allocations: 7.984 kB / 344.4 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.101, allocations: 1.442 MB / 345.9 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.101, allocations: 0 / 345.9 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004675/0.1015, allocations: 368.6 kB / 346.2 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.666e-05/0.1016, allocations: 104.6 kB / 346.3 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.1016, allocations: 12.03 kB / 346.4 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.1018, allocations: 7.938 kB / 346.4 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.1018, allocations: 15.92 kB / 346.4 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.1018, allocations: 8 kB / 346.4 MB, free: 92 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002366/0.1021, allocations: 239.2 kB / 346.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1021, allocations: 0 / 346.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000405/0.1025, allocations: 68 kB / 346.7 MB, free: 15.79 MB / 302.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007307/0.1032, allocations: 0.8893 MB / 347.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005436/0.1038, allocations: 323.6 kB / 347.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1038, allocations: 4 kB / 347.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.104, allocations: 183.5 kB / 348.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.1043, allocations: 33.56 kB / 348.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004328/0.1087, allocations: 3.525 MB / 351.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.1091, allocations: 0.8224 MB / 352.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.1093, allocations: 35.28 kB / 352.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.1095, allocations: 159.4 kB / 352.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1095, allocations: 0 / 352.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.1311, allocations: 5.979 MB / 358.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/0.1313, allocations: 239.2 kB / 358.9 MB, free: 3.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/2.22, allocations: 0 / 358.9 MB, free: 3.262 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat