Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00113/0.00113, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001109/0.001109, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 65.52 kB / 306.6 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09997/0.1011, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.005405/0.1066, allocations: 3.108 MB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1088, allocations: 1.01 MB / 361.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005395/0.1094, allocations: 11.94 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003965/0.1098, allocations: 75.36 kB / 361.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004412/0.1103, allocations: 75.31 kB / 361.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006731/0.111, allocations: 207.8 kB / 361.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007208/0.1117, allocations: 0.541 MB / 362.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003775/0.1121, allocations: 222.6 kB / 362.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003428/0.1124, allocations: 183.2 kB / 362.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.1127, allocations: 179 kB / 362.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.305e-05/0.1128, allocations: 36 kB / 362.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.1129, allocations: 63.97 kB / 362.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.294e-05/0.113, allocations: 91.58 kB / 362.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.1132, allocations: 222.7 kB / 363.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.1138, allocations: 0.5647 MB / 363.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1138, allocations: 0 / 363.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1138, allocations: 0 / 363.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.276e-05/0.1138, allocations: 0 / 363.6 MB, free: 7.703 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.001004/0.1149, allocations: 0.7405 MB / 364.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1149, allocations: 12.03 kB / 364.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.327e-05/0.115, allocations: 74.72 kB / 364.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002034/0.1152, allocations: 71.83 kB / 364.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.1157, allocations: 402.3 kB / 364.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.1157, allocations: 33 kB / 365 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.368e-05/0.1158, allocations: 43.91 kB / 365 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007221/0.1166, allocations: 483.4 kB / 365.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.1166, allocations: 7.938 kB / 365.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.1166, allocations: 16 kB / 365.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.1166, allocations: 12 kB / 365.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.1171, allocations: 250.1 kB / 365.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.1193, allocations: 2.831 MB / 368.6 MB, free: 2.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.1197, allocations: 158.6 kB / 368.7 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.1198, allocations: 76.86 kB / 368.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.12, allocations: 85.09 kB / 368.9 MB, free: 2.094 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.12, allocations: 34.5 kB / 368.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.283e-06/0.1201, allocations: 4 kB / 368.9 MB, free: 2.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001225/0.1213, allocations: 0.6272 MB / 369.6 MB, free: 1.367 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.1213, allocations: 59.34 kB / 369.6 MB, free: 1.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.1216, allocations: 345.6 kB / 370 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.1217, allocations: 25.7 kB / 370 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.1218, allocations: 306.9 kB / 370.3 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/0.1219, allocations: 71.08 kB / 370.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.453e-05/0.122, allocations: 69.56 kB / 370.4 MB, free: 476 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1221, allocations: 354.7 kB / 370.8 MB, free: 112 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1222, allocations: 63.97 kB / 370.8 MB, free: 48 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2083/0.3305, allocations: 211.2 kB / 371 MB, free: 20.08 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.001223/0.3318, allocations: 0.5142 MB / 371.5 MB, free: 19.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3318, allocations: 2.25 kB / 371.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007146/0.3325, allocations: 364.4 kB / 371.9 MB, free: 19.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3326, allocations: 7.094 kB / 371.9 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.3326, allocations: 5.812 kB / 371.9 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001632/0.3327, allocations: 33.03 kB / 372 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.333, allocations: 76.22 kB / 372 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.3342, allocations: 1.631 MB / 373.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.3344, allocations: 23.08 kB / 373.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.3345, allocations: 16.97 kB / 373.7 MB, free: 18.22 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.0002295/0.3347, allocations: 173.9 kB / 373.9 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.3348, allocations: 41.09 kB / 373.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.132e-05/0.3349, allocations: 38.05 kB / 373.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3349, allocations: 2.25 kB / 373.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.3349, allocations: 0 / 373.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3349, allocations: 2.844 kB / 373.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009443/0.3358, allocations: 0.7122 MB / 374.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3358, allocations: 4.031 kB / 374.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.336, allocations: 33.31 kB / 374.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.513e-05/0.3361, allocations: 25.95 kB / 374.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.3361, allocations: 6.25 kB / 374.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007401/0.3369, allocations: 1.431 MB / 376.2 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3369, allocations: 0.5156 kB / 376.2 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000487/0.3374, allocations: 370.8 kB / 376.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.3375, allocations: 106.2 kB / 376.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.3375, allocations: 6.891 kB / 376.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.3376, allocations: 8.25 kB / 376.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.868e-05/0.3377, allocations: 19.41 kB / 376.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.3377, allocations: 3.469 kB / 376.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002788/0.338, allocations: 242.2 kB / 376.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.338, allocations: 4.969 kB / 376.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005166/0.3385, allocations: 70.42 kB / 377 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.0007204/0.3393, allocations: 0.8959 MB / 377.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005817/0.3399, allocations: 322.6 kB / 378.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3399, allocations: 4.25 kB / 378.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.3401, allocations: 183.4 kB / 378.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.3404, allocations: 38.27 kB / 378.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004002/0.3444, allocations: 3.532 MB / 381.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.3447, allocations: 0.8155 MB / 382.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001724/0.3449, allocations: 38.53 kB / 382.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.3451, allocations: 157.9 kB / 382.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3451, allocations: 0 / 382.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02374/0.3688, allocations: 6.004 MB / 388.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.369, allocations: 230.5 kB / 389.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.232, allocations: 0 / 389.2 MB, free: 9.996 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat