Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_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.001414/0.001414, allocations: 106.7 kB / 16.62 MB, free: 6.812 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.00157/0.00157, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002013, allocations: 39.09 kB / 300.2 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09848, allocations: 49.45 MB / 349.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.004628/0.1031, allocations: 3.08 MB / 352.8 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.105, allocations: 0.9357 MB / 353.7 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003721/0.1054, allocations: 11.94 kB / 353.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003117/0.1058, allocations: 75.38 kB / 353.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003046/0.1061, allocations: 87.25 kB / 353.9 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005695/0.1066, allocations: 187.8 kB / 354 MB, free: 288 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006988/0.1074, allocations: 0.5448 MB / 354.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003718/0.1077, allocations: 222.6 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.108, allocations: 183.2 kB / 355 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.1083, allocations: 179 kB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.437e-05/0.1084, allocations: 40 kB / 355.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.1085, allocations: 48 kB / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.453e-05/0.1086, allocations: 91.62 kB / 355.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001954/0.1088, allocations: 226.7 kB / 355.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005305/0.1093, allocations: 0.5491 MB / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1093, allocations: 0 / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1093, allocations: 4 kB / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.1094, allocations: 4 kB / 356.1 MB, free: 14.19 MB / 302.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.001015/0.1104, allocations: 0.7366 MB / 356.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1104, allocations: 8.031 kB / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.398e-05/0.1105, allocations: 86.7 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.905e-05/0.1106, allocations: 59.84 kB / 357 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005104/0.1111, allocations: 398.3 kB / 357.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.1112, allocations: 33 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.024e-05/0.1113, allocations: 40 kB / 357.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007496/0.112, allocations: 483.4 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.1121, allocations: 11.94 kB / 358 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.515e-05/0.1121, allocations: 20 kB / 358 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.1121, allocations: 12 kB / 358 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004905/0.1126, allocations: 242.1 kB / 358.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.1148, allocations: 2.838 MB / 361.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.1152, allocations: 172.8 kB / 361.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.1154, allocations: 68.84 kB / 361.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000196/0.1156, allocations: 89.08 kB / 361.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.1156, allocations: 38.5 kB / 361.4 MB, free: 8.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.333e-06/0.1156, allocations: 0 / 361.4 MB, free: 8.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001236/0.1169, allocations: 0.6245 MB / 362 MB, free: 7.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.1169, allocations: 55.39 kB / 362.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.1173, allocations: 353.4 kB / 362.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.1173, allocations: 29.7 kB / 362.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.1175, allocations: 299 kB / 362.8 MB, free: 7.102 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.713e-05/0.1175, allocations: 63.09 kB / 362.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.17e-05/0.1176, allocations: 65.61 kB / 362.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1177, allocations: 354.7 kB / 363.2 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.1179, allocations: 63.97 kB / 363.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.1181, allocations: 211.7 kB / 363.5 MB, free: 6.273 MB / 302.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.0008663/0.119, allocations: 0.512 MB / 364 MB, free: 5.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.119, allocations: 8 kB / 364 MB, free: 5.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005691/0.1196, allocations: 368.3 kB / 364.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1196, allocations: 4 kB / 364.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.1196, allocations: 8 kB / 364.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001276/0.1197, allocations: 32.84 kB / 364.4 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.12, allocations: 75.89 kB / 364.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.1212, allocations: 1.643 MB / 366.1 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.1214, allocations: 27.89 kB / 366.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.1214, allocations: 16 kB / 366.2 MB, free: 3.352 MB / 302.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.0001885/0.1216, allocations: 169.7 kB / 366.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.247e-05/0.1217, allocations: 35.56 kB / 366.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.311e-05/0.1217, allocations: 43.66 kB / 366.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.1217, allocations: 0 / 366.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1217, allocations: 4 kB / 366.4 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.1218, allocations: 0 / 366.4 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008793/0.1226, allocations: 0.7139 MB / 367.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.1227, allocations: 0 / 367.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.1228, allocations: 39.95 kB / 367.2 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.315e-05/0.1229, allocations: 24.84 kB / 367.2 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.1229, allocations: 4 kB / 367.2 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009207/0.1239, allocations: 1.434 MB / 368.6 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1239, allocations: 0 / 368.6 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004541/0.1243, allocations: 368.6 kB / 369 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.011e-05/0.1244, allocations: 104.6 kB / 369.1 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.1245, allocations: 4 kB / 369.1 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/0.1246, allocations: 12.03 kB / 369.1 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-05/0.1246, allocations: 15.92 kB / 369.1 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.1247, allocations: 8 kB / 369.1 MB, free: 116 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.155/0.2796, allocations: 232.2 kB / 369.4 MB, free: 25.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.62e-07/0.2797, allocations: 4.969 kB / 369.4 MB, free: 25.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006373/0.2803, allocations: 66.47 kB / 369.4 MB, free: 25.42 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.0008155/0.2811, allocations: 0.8931 MB / 370.3 MB, free: 24.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006355/0.2818, allocations: 316.4 kB / 370.6 MB, free: 24.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2818, allocations: 1.594 kB / 370.7 MB, free: 24.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.282, allocations: 191.8 kB / 370.8 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.2824, allocations: 36.3 kB / 370.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.2864, allocations: 3.51 MB / 374.4 MB, free: 22.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.2867, allocations: 0.8178 MB / 375.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.2869, allocations: 38.59 kB / 375.2 MB, free: 21.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.287, allocations: 157.7 kB / 375.4 MB, free: 21.61 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2871, allocations: 0 / 375.4 MB, free: 21.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02574/0.3128, allocations: 5.987 MB / 381.4 MB, free: 20.84 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/0.313, allocations: 232.4 kB / 381.6 MB, free: 20.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.205, allocations: 1.062 kB / 381.6 MB, free: 20.59 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat