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.001109/0.001109, allocations: 100.2 kB / 16.5 MB, free: 6.723 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.001361/0.001362, allocations: 194.5 kB / 17.43 MB, free: 6.082 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.278/1.278, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 44.02 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09831, allocations: 49.45 MB / 349.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.004252/0.1026, allocations: 3.096 MB / 352.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.1043, allocations: 0.9358 MB / 353.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002956/0.1046, allocations: 11.94 kB / 353.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002827/0.1049, allocations: 75.36 kB / 353.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000241/0.1052, allocations: 79.31 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004792/0.1057, allocations: 199.7 kB / 353.9 MB, free: 352 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005781/0.1062, allocations: 0.5175 MB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003259/0.1066, allocations: 194.2 kB / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002265/0.1068, allocations: 159.2 kB / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001913/0.107, allocations: 171 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.1071, allocations: 20 kB / 354.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.1072, allocations: 32 kB / 355 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.103e-05/0.1072, allocations: 75.62 kB / 355 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.1074, allocations: 214.7 kB / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004385/0.1079, allocations: 0.5023 MB / 355.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.1079, allocations: 3.938 kB / 355.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.1079, allocations: 4 kB / 355.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.1079, allocations: 0 / 355.8 MB, free: 14.45 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.0009374/0.1089, allocations: 0.7443 MB / 356.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1089, allocations: 12.03 kB / 356.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.427e-05/0.109, allocations: 82.7 kB / 356.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.25e-05/0.1091, allocations: 59.84 kB / 356.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.1095, allocations: 394.4 kB / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.1096, allocations: 37 kB / 357.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/0.1096, allocations: 36 kB / 357.1 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006812/0.1103, allocations: 491.4 kB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1104, allocations: 8 kB / 357.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.1104, allocations: 16 kB / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.1104, allocations: 12 kB / 357.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.1109, allocations: 242.1 kB / 357.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.1129, allocations: 2.834 MB / 360.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.1133, allocations: 166.7 kB / 360.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.1134, allocations: 64.84 kB / 360.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001378/0.1136, allocations: 85.09 kB / 361 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.1136, allocations: 38.5 kB / 361 MB, free: 8.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.372e-06/0.1136, allocations: 0 / 361 MB, free: 8.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001172/0.1148, allocations: 0.6279 MB / 361.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.1149, allocations: 59.39 kB / 361.7 MB, free: 8.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/0.1152, allocations: 345.5 kB / 362.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.1152, allocations: 25.7 kB / 362.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.1154, allocations: 303 kB / 362.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.396e-05/0.1154, allocations: 63.09 kB / 362.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.176e-05/0.1155, allocations: 65.61 kB / 362.5 MB, free: 7.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1157, allocations: 354.7 kB / 362.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.1158, allocations: 63.97 kB / 362.9 MB, free: 6.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.116, allocations: 223.5 kB / 363.1 MB, free: 6.531 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.0008589/0.1169, allocations: 0.5107 MB / 363.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1169, allocations: 0 / 363.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005439/0.1174, allocations: 366 kB / 364 MB, free: 5.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1175, allocations: 11.94 kB / 364 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1175, allocations: 4 kB / 364 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001263/0.1176, allocations: 40.84 kB / 364.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002244/0.1178, allocations: 71.89 kB / 364.1 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.119, allocations: 1.479 MB / 365.6 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.1192, allocations: 19.98 kB / 365.6 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.1192, allocations: 16 kB / 365.7 MB, free: 3.789 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.0001922/0.1194, allocations: 171.9 kB / 365.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.287e-05/0.1195, allocations: 35.53 kB / 365.9 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.502e-05/0.1196, allocations: 47.52 kB / 365.9 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1196, allocations: 3.938 kB / 365.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1196, allocations: 0 / 365.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1196, allocations: 0 / 365.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009145/0.1205, allocations: 0.7179 MB / 366.6 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1205, allocations: 3.984 kB / 366.6 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001744/0.1207, allocations: 27.98 kB / 366.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.036e-05/0.1208, allocations: 32.78 kB / 366.7 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.1208, allocations: 4 kB / 366.7 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008661/0.1217, allocations: 1.328 MB / 368 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1217, allocations: 4.031 kB / 368 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005098/0.1222, allocations: 364.6 kB / 368.4 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.1223, allocations: 104.6 kB / 368.5 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.1223, allocations: 4 kB / 368.5 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.1225, allocations: 16.03 kB / 368.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.1225, allocations: 15.92 kB / 368.5 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.1225, allocations: 4 kB / 368.5 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001958/0.1227, allocations: 235.2 kB / 368.7 MB, free: 440 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1227, allocations: 0 / 368.7 MB, free: 440 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003988/0.1232, allocations: 72 kB / 368.8 MB, free: 368 kB / 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.17/0.2932, allocations: 0.8922 MB / 369.7 MB, free: 24.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006167/0.2938, allocations: 312.2 kB / 370 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.2939, allocations: 1.531 kB / 370 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002179/0.2941, allocations: 190.8 kB / 370.2 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.2945, allocations: 39.59 kB / 370.2 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00406/0.2986, allocations: 3.508 MB / 373.8 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.2989, allocations: 0.8164 MB / 374.6 MB, free: 21.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.2991, allocations: 37.86 kB / 374.6 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.2993, allocations: 154.5 kB / 374.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2993, allocations: 3.938 kB / 374.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.3169, allocations: 5.839 MB / 380.6 MB, free: 21.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.3172, allocations: 239.6 kB / 380.8 MB, free: 20.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.198, allocations: 3.625 kB / 380.8 MB, free: 20.77 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