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.0008198/0.0008199, allocations: 94.09 kB / 17.3 MB, free: 6.391 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.0008972/0.0008973, allocations: 173.1 kB / 18.2 MB, free: 5.551 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.37/1.37, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004693/0.0004694, allocations: 12 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1077, allocations: 47.58 MB / 329 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.003441/0.1112, allocations: 2.703 MB / 331.8 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.113, allocations: 0.9798 MB / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.1131, allocations: 7.938 kB / 332.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.1134, allocations: 71.38 kB / 332.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.1135, allocations: 79.33 kB / 332.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004257/0.114, allocations: 183.8 kB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005151/0.1145, allocations: 0.5135 MB / 333.6 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.1148, allocations: 198.2 kB / 333.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.115, allocations: 139.3 kB / 333.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001805/0.1152, allocations: 159 kB / 334.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.1153, allocations: 12 kB / 334.1 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.949e-05/0.1154, allocations: 23.94 kB / 334.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.23e-05/0.1154, allocations: 67.64 kB / 334.2 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.1156, allocations: 220.4 kB / 334.4 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000432/0.1161, allocations: 0.4905 MB / 334.9 MB, free: 13.8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1161, allocations: 0 / 334.9 MB, free: 13.8 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1161, allocations: 3.984 kB / 334.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1161, allocations: 0 / 334.9 MB, free: 13.79 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.0008453/0.1169, allocations: 0.651 MB / 335.5 MB, free: 13.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.117, allocations: 12.02 kB / 335.5 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.488e-05/0.1171, allocations: 82.72 kB / 335.6 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.553e-05/0.1172, allocations: 59.75 kB / 335.7 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004908/0.1177, allocations: 394.4 kB / 336.1 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.373e-05/0.1177, allocations: 29 kB / 336.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.497e-05/0.1178, allocations: 47.98 kB / 336.1 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007754/0.1186, allocations: 495.2 kB / 336.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.1186, allocations: 4 kB / 336.6 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.896e-05/0.1187, allocations: 20 kB / 336.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.1187, allocations: 19.94 kB / 336.7 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004993/0.1192, allocations: 250.1 kB / 336.9 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002347/0.1215, allocations: 2.83 MB / 339.7 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004106/0.122, allocations: 170.7 kB / 339.9 MB, free: 8.426 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.1221, allocations: 76.2 kB / 340 MB, free: 8.352 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001715/0.1223, allocations: 81.11 kB / 340.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.1223, allocations: 34.5 kB / 340.1 MB, free: 8.211 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.132e-06/0.1223, allocations: 0 / 340.1 MB, free: 8.211 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001326/0.1237, allocations: 0.6379 MB / 340.7 MB, free: 7.516 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.1237, allocations: 51.41 kB / 340.8 MB, free: 7.453 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003882/0.1241, allocations: 345.5 kB / 341.1 MB, free: 7.105 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.1241, allocations: 29.7 kB / 341.1 MB, free: 7.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/0.1243, allocations: 303 kB / 341.4 MB, free: 6.77 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.1244, allocations: 67.08 kB / 341.5 MB, free: 6.703 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-05/0.1245, allocations: 33.7 kB / 341.5 MB, free: 6.664 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1246, allocations: 350.7 kB / 341.9 MB, free: 6.312 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.1248, allocations: 75.7 kB / 342 MB, free: 6.238 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002694/0.1251, allocations: 219.6 kB / 342.2 MB, free: 5.953 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.000944/0.126, allocations: 0.5353 MB / 342.7 MB, free: 5.328 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.126, allocations: 0 / 342.7 MB, free: 5.328 MB / 286.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005656/0.1266, allocations: 366 kB / 343.1 MB, free: 4.961 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1266, allocations: 11.98 kB / 343.1 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.1266, allocations: 4 kB / 343.1 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001429/0.1268, allocations: 32.84 kB / 343.1 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/0.127, allocations: 75.91 kB / 343.2 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.1283, allocations: 1.463 MB / 344.7 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/0.1284, allocations: 23.98 kB / 344.7 MB, free: 3.211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.1285, allocations: 16 kB / 344.7 MB, free: 3.195 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 sytem: 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.0001996/0.1287, allocations: 173.9 kB / 344.9 MB, free: 3.016 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.311e-05/0.1287, allocations: 39.53 kB / 344.9 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.226e-05/0.1288, allocations: 39.52 kB / 344.9 MB, free: 2.938 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.1288, allocations: 4 kB / 344.9 MB, free: 2.934 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.1288, allocations: 3.938 kB / 344.9 MB, free: 2.93 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.1288, allocations: 0 / 344.9 MB, free: 2.93 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009227/0.1298, allocations: 0.7179 MB / 345.7 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1298, allocations: 0 / 345.7 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.1299, allocations: 35.98 kB / 345.7 MB, free: 2.102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.618e-05/0.13, allocations: 28.78 kB / 345.7 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.1301, allocations: 8 kB / 345.7 MB, free: 2.062 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009039/0.131, allocations: 1.32 MB / 347.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.131, allocations: 4.031 kB / 347.1 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004843/0.1315, allocations: 375.7 kB / 347.4 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.1315, allocations: 105 kB / 347.5 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.1316, allocations: 8.031 kB / 347.5 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.1317, allocations: 15.91 kB / 347.5 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.639e-05/0.1318, allocations: 23.91 kB / 347.6 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.1318, allocations: 4 kB / 347.6 MB, free: 52 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.132, allocations: 239.2 kB / 347.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1321, allocations: 0 / 347.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000405/0.1325, allocations: 68 kB / 347.9 MB, free: 15.75 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.0007513/0.1332, allocations: 0.8933 MB / 348.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005513/0.1338, allocations: 323.6 kB / 349.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1338, allocations: 0 / 349.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.134, allocations: 187.8 kB / 349.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.1344, allocations: 41.56 kB / 349.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004072/0.1385, allocations: 3.6 MB / 352.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.1389, allocations: 0.8224 MB / 353.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.139, allocations: 39.27 kB / 353.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.1392, allocations: 155.4 kB / 353.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1392, allocations: 0 / 353.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.1586, allocations: 5.755 MB / 359.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.1589, allocations: 230.4 kB / 359.9 MB, free: 3.379 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.09, allocations: 0 / 359.9 MB, free: 3.379 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