Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 201.2 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.391/1.391, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.001907/0.001907, allocations: 59.91 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2932, allocations: 50.55 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004517/0.2977, allocations: 3.165 MB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.2993, allocations: 0.8507 MB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.2995, allocations: 4 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.2997, allocations: 67.36 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.3, allocations: 110.9 kB / 413.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.3004, allocations: 159.7 kB / 413.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005285/0.3009, allocations: 0.5424 MB / 414 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002822/0.3012, allocations: 172.3 kB / 414.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.3015, allocations: 227.2 kB / 414.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.3018, allocations: 259 kB / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.689e-05/0.3019, allocations: 59.94 kB / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.302, allocations: 60 kB / 414.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.794e-05/0.3021, allocations: 107.7 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002284/0.3024, allocations: 234.9 kB / 415.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006015/0.303, allocations: 0.5671 MB / 415.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.303, allocations: 0 / 415.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.303, allocations: 0 / 415.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.303, allocations: 0 / 415.6 MB, free: 10.78 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001548/0.3046, allocations: 0.8027 MB / 416.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3046, allocations: 8.031 kB / 416.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.18e-05/0.3047, allocations: 78.66 kB / 416.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.3049, allocations: 64.59 kB / 416.6 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004573/0.3054, allocations: 319.5 kB / 416.9 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.3054, allocations: 29.38 kB / 416.9 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/0.3055, allocations: 36.38 kB / 417 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.3066, allocations: 0.5085 MB / 417.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.3066, allocations: 0 / 417.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/0.3067, allocations: 16 kB / 417.5 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.3067, allocations: 8 kB / 417.5 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.3081, allocations: 0.4996 MB / 418 MB, free: 8.297 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002636/0.3107, allocations: 1.663 MB / 419.7 MB, free: 6.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.3119, allocations: 419.7 kB / 420.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005322/0.3124, allocations: 242.5 kB / 420.3 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.3125, allocations: 12.31 kB / 420.3 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.3125, allocations: 34.89 kB / 420.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.444e-06/0.3125, allocations: 4 kB / 420.4 MB, free: 5.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.005012/0.3175, allocations: 1.361 MB / 421.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3177, allocations: 170.2 kB / 421.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003884/0.3181, allocations: 267 kB / 422.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.52e-05/0.3181, allocations: 37.7 kB / 422.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.3183, allocations: 212.7 kB / 422.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.3185, allocations: 142.8 kB / 422.5 MB, free: 3.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.3186, allocations: 70.12 kB / 422.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.3188, allocations: 350.8 kB / 422.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005353/0.3193, allocations: 184.7 kB / 423.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006035/0.32, allocations: 294.5 kB / 423.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.321, allocations: 426.5 kB / 423.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.321, allocations: 0 / 423.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001918/0.3229, allocations: 0.6859 MB / 424.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.323, allocations: 4 kB / 424.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.323, allocations: 4 kB / 424.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.3243, allocations: 317.5 kB / 424.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003513/0.3247, allocations: 79.88 kB / 424.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.3261, allocations: 1.347 MB / 426.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005161/0.3266, allocations: 75.61 kB / 426.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.3267, allocations: 16 kB / 426.3 MB, free: 15.53 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002252/0.3269, allocations: 167.1 kB / 426.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.306e-05/0.327, allocations: 39.7 kB / 426.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.3292, allocations: 0.724 MB / 427.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.3292, allocations: 4 kB / 427.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3292, allocations: 0 / 427.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3292, allocations: 4 kB / 427.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006235/0.3299, allocations: 473.1 kB / 427.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3299, allocations: 192 / 427.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.3302, allocations: 51.95 kB / 427.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.3314, allocations: 329.3 kB / 428.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.002e-05/0.3315, allocations: 4 kB / 428.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.3328, allocations: 1.362 MB / 429.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3328, allocations: 4.031 kB / 429.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.3355, allocations: 1.019 MB / 430.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.3356, allocations: 124.7 kB / 430.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.404e-05/0.3357, allocations: 8 kB / 430.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/0.336, allocations: 44.02 kB / 430.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.637e-05/0.3361, allocations: 27.73 kB / 430.7 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-05/0.3362, allocations: 16 kB / 430.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002636/0.3365, allocations: 197.9 kB / 430.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3365, allocations: 0 / 430.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004166/0.3369, allocations: 115.8 kB / 431 MB, free: 10.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003004/0.3399, allocations: 1.557 MB / 432.6 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3413, allocations: 487.7 kB / 433 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3413, allocations: 4.062 kB / 433.1 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006159/0.3419, allocations: 247.8 kB / 433.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.3423, allocations: 44.55 kB / 433.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007933/0.3503, allocations: 4.085 MB / 437.4 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000454/0.3508, allocations: 0.7956 MB / 438.2 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.3509, allocations: 34.95 kB / 438.3 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.3511, allocations: 123.4 kB / 438.4 MB, free: 3.117 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3511, allocations: 3.938 kB / 438.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03544/0.3866, allocations: 9.389 MB / 447.8 MB, free: 9.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/12.76, allocations: 18.45 kB / 447.8 MB, free: 9.887 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1)