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.0007264/0.0007264, allocations: 86.56 kB / 16.65 MB, free: 6.535 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.0008328/0.0008329, allocations: 176.3 kB / 17.56 MB, free: 6.18 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.205/1.205, allocations: 223.3 MB / 241.6 MB, free: 184 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002218/0.0002219, allocations: 9.156 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07909/0.07933, allocations: 50.41 MB / 351.9 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.002677/0.08203, allocations: 2.698 MB / 354.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.08343, allocations: 0.9396 MB / 355.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002159/0.08367, allocations: 11.94 kB / 355.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.08386, allocations: 75.42 kB / 355.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.08405, allocations: 75.27 kB / 355.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.08446, allocations: 195.8 kB / 355.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000484/0.08495, allocations: 0.5057 MB / 356.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002797/0.08524, allocations: 206.2 kB / 356.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.08543, allocations: 135.3 kB / 356.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.08559, allocations: 150.9 kB / 356.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.08563, allocations: 16 kB / 356.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.225e-05/0.08572, allocations: 27.98 kB / 357 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.895e-05/0.08577, allocations: 59.64 kB / 357 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.08593, allocations: 220.4 kB / 357.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.08634, allocations: 0.4983 MB / 357.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.08635, allocations: 0 / 357.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.08636, allocations: 4 kB / 357.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.08638, allocations: 0 / 357.7 MB, free: 13.75 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.000757/0.08714, allocations: 0.6548 MB / 358.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.08718, allocations: 11.97 kB / 358.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.872e-05/0.08726, allocations: 74.72 kB / 358.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.005e-05/0.08734, allocations: 59.84 kB / 358.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004315/0.08778, allocations: 410.3 kB / 358.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.08781, allocations: 29 kB / 359 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.331e-05/0.08787, allocations: 40 kB / 359 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006695/0.08854, allocations: 491.4 kB / 359.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.08857, allocations: 3.938 kB / 359.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.08861, allocations: 20 kB / 359.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.08862, allocations: 12 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000472/0.0891, allocations: 250.1 kB / 359.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002138/0.09125, allocations: 2.83 MB / 362.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.09164, allocations: 162.6 kB / 362.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.09179, allocations: 76.81 kB / 362.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001225/0.09192, allocations: 89.09 kB / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.09195, allocations: 42.44 kB / 362.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.09196, allocations: 4 kB / 363 MB, free: 8.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001189/0.09315, allocations: 0.6295 MB / 363.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.0932, allocations: 59.41 kB / 363.6 MB, free: 7.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.09354, allocations: 345.5 kB / 364 MB, free: 7.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.09356, allocations: 25.7 kB / 364 MB, free: 7.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.09375, allocations: 303 kB / 364.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.391e-05/0.09381, allocations: 63.11 kB / 364.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.293e-05/0.09386, allocations: 29.7 kB / 364.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.09398, allocations: 354.7 kB / 364.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.09413, allocations: 63.97 kB / 364.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/0.09438, allocations: 223.7 kB / 365 MB, free: 5.93 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.0008956/0.09528, allocations: 0.5303 MB / 365.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.0953, allocations: 4 kB / 365.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005414/0.09584, allocations: 364.1 kB / 365.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.09587, allocations: 8 kB / 365.9 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.09589, allocations: 8 kB / 365.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001309/0.09602, allocations: 36.78 kB / 366 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.09625, allocations: 72.44 kB / 366 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.09732, allocations: 1.479 MB / 367.5 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.0975, allocations: 27.95 kB / 367.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.09753, allocations: 16 kB / 367.5 MB, free: 3.164 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 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.0001753/0.09771, allocations: 169.7 kB / 367.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.63e-05/0.09777, allocations: 31.62 kB / 367.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.524e-05/0.09784, allocations: 43.53 kB / 367.8 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.09785, allocations: 0 / 367.8 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.09786, allocations: 0 / 367.8 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.09787, allocations: 8 kB / 367.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008972/0.09877, allocations: 0.714 MB / 368.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.09878, allocations: 0 / 368.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.09895, allocations: 31.98 kB / 368.5 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.115e-05/0.09904, allocations: 28.88 kB / 368.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.09906, allocations: 4 kB / 368.6 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007981/0.09987, allocations: 1.339 MB / 369.9 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.09988, allocations: 4.062 kB / 369.9 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004553/0.1003, allocations: 375.2 kB / 370.3 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.459e-05/0.1004, allocations: 108.7 kB / 370.4 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.1004, allocations: 8 kB / 370.4 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.1006, allocations: 8 kB / 370.4 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.1006, allocations: 15.92 kB / 370.4 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.1006, allocations: 11.98 kB / 370.4 MB, free: 16 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1334/0.2341, allocations: 225.3 kB / 370.7 MB, free: 24.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2341, allocations: 0 / 370.7 MB, free: 24.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005533/0.2346, allocations: 67.34 kB / 370.7 MB, free: 24.3 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.0007986/0.2355, allocations: 0.9051 MB / 371.6 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005769/0.236, allocations: 313.2 kB / 371.9 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2361, allocations: 0 / 371.9 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002071/0.2363, allocations: 198.6 kB / 372.1 MB, free: 23.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.2367, allocations: 39.62 kB / 372.2 MB, free: 23.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003682/0.2403, allocations: 3.578 MB / 375.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.2406, allocations: 0.8173 MB / 376.6 MB, free: 20.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001327/0.2407, allocations: 38 kB / 376.6 MB, free: 20.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.2409, allocations: 155.8 kB / 376.7 MB, free: 20.53 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2409, allocations: 0 / 376.7 MB, free: 20.53 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.2584, allocations: 5.752 MB / 382.5 MB, free: 19.85 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001489/0.2586, allocations: 241 kB / 382.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.041, allocations: 0 / 382.7 MB, free: 19.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