Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_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.001768/0.001768, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002085/0.002085, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2656, allocations: 50.54 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.006611/0.2723, allocations: 3.072 MB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003015/0.2753, allocations: 1.025 MB / 413.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006324/0.276, allocations: 11.94 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006908/0.2768, allocations: 98.98 kB / 413.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.2773, allocations: 95.02 kB / 413.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009847/0.2783, allocations: 227.6 kB / 413.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001044/0.2794, allocations: 0.541 MB / 414.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005701/0.28, allocations: 226.6 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004419/0.2804, allocations: 187.2 kB / 414.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003364/0.2808, allocations: 183 kB / 414.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.931e-05/0.2809, allocations: 36 kB / 414.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002066/0.2811, allocations: 55.94 kB / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.2813, allocations: 91.62 kB / 414.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003545/0.2817, allocations: 226.7 kB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.2827, allocations: 0.5824 MB / 415.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2827, allocations: 0 / 415.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.2827, allocations: 0 / 415.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.504e-05/0.2828, allocations: 0 / 415.7 MB, free: 10.69 MB / 334.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.001689/0.2845, allocations: 0.7595 MB / 416.4 MB, free: 9.883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.2845, allocations: 12.03 kB / 416.5 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.2847, allocations: 78.7 kB / 416.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002833/0.285, allocations: 72.06 kB / 416.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009231/0.2859, allocations: 430.6 kB / 417 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/0.286, allocations: 29 kB / 417 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.578e-05/0.2861, allocations: 43.89 kB / 417.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.2873, allocations: 491.3 kB / 417.6 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/0.2873, allocations: 7.938 kB / 417.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.2874, allocations: 19.98 kB / 417.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.2874, allocations: 12 kB / 417.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008619/0.2883, allocations: 250.1 kB / 417.9 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003444/0.2917, allocations: 2.823 MB / 420.7 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006435/0.2924, allocations: 158.7 kB / 420.8 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.2926, allocations: 72.77 kB / 420.9 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001362/0.2927, allocations: 81.11 kB / 421 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.2928, allocations: 42.5 kB / 421 MB, free: 4.988 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.084e-06/0.2928, allocations: 4 kB / 421 MB, free: 4.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001389/0.2942, allocations: 0.6304 MB / 421.7 MB, free: 4.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.2942, allocations: 51.41 kB / 421.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004491/0.2947, allocations: 349.6 kB / 422 MB, free: 3.891 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.2947, allocations: 29.7 kB / 422.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.295, allocations: 307.7 kB / 422.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.697e-05/0.295, allocations: 71.45 kB / 422.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.2952, allocations: 73.55 kB / 422.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.2954, allocations: 350.7 kB / 422.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.2955, allocations: 63.97 kB / 422.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.2958, allocations: 215.5 kB / 423.1 MB, free: 2.707 MB / 334.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.0009971/0.2968, allocations: 0.5136 MB / 423.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.2968, allocations: 4 kB / 423.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006673/0.2975, allocations: 360.2 kB / 424 MB, free: 1.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2975, allocations: 8 kB / 424 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2975, allocations: 4 kB / 424 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000139/0.2977, allocations: 40.78 kB / 424.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.2979, allocations: 72.56 kB / 424.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.2995, allocations: 1.643 MB / 425.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.2997, allocations: 19.94 kB / 425.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.2997, allocations: 12 kB / 425.8 MB, free: 15.8 MB / 350.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.0002278/0.2999, allocations: 172.9 kB / 426 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.824e-05/0.3, allocations: 39.7 kB / 426 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.008e-05/0.3001, allocations: 47.52 kB / 426.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3001, allocations: 0 / 426.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3001, allocations: 0 / 426.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3001, allocations: 4.062 kB / 426.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.3011, allocations: 0.7104 MB / 426.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3011, allocations: 0 / 426.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.3013, allocations: 27.98 kB / 426.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.352e-05/0.3014, allocations: 24.84 kB / 426.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.3014, allocations: 8 kB / 426.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.3026, allocations: 1.43 MB / 428.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3026, allocations: 0 / 428.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.3032, allocations: 384.6 kB / 428.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.3034, allocations: 104.9 kB / 428.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.3034, allocations: 0 / 428.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.3035, allocations: 8 kB / 428.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.834e-05/0.3036, allocations: 19.97 kB / 428.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.3036, allocations: 8 kB / 428.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002601/0.3039, allocations: 239.2 kB / 429 MB, free: 12.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3039, allocations: 0 / 429 MB, free: 12.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004339/0.3043, allocations: 68 kB / 429.1 MB, free: 12.26 MB / 350.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.0008507/0.3052, allocations: 0.9011 MB / 430 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006017/0.3058, allocations: 315.7 kB / 430.3 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3058, allocations: 0 / 430.3 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.306, allocations: 186.6 kB / 430.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.3064, allocations: 29.56 kB / 430.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004618/0.311, allocations: 3.354 MB / 433.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.3116, allocations: 0.8107 MB / 434.7 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001338/0.3117, allocations: 39.27 kB / 434.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.3119, allocations: 155.4 kB / 434.8 MB, free: 6.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.645e-06/0.312, allocations: 0 / 434.8 MB, free: 6.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03742/0.3494, allocations: 6.316 MB / 441.2 MB, free: 32 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.5, allocations: 0 / 441.2 MB, free: 32 kB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1)