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.001246/0.001245, allocations: 103.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.483/1.483, allocations: 227.7 MB / 247.1 MB, free: 10.29 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.00193/0.00193, allocations: 61.02 kB / 307.3 MB, free: 388 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1165, allocations: 50.53 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004658/0.1212, allocations: 3.16 MB / 361 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.1228, allocations: 0.8429 MB / 361.9 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.123, allocations: 8 kB / 361.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.1232, allocations: 59.38 kB / 361.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.1234, allocations: 110.9 kB / 362 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004257/0.1239, allocations: 167.7 kB / 362.2 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.1244, allocations: 0.5425 MB / 362.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003022/0.1247, allocations: 172.3 kB / 362.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003302/0.1251, allocations: 227.2 kB / 363.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000304/0.1254, allocations: 255 kB / 363.4 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.914e-05/0.1255, allocations: 55.94 kB / 363.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.1256, allocations: 60 kB / 363.5 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.1258, allocations: 111.7 kB / 363.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002236/0.126, allocations: 238.9 kB / 363.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005701/0.1266, allocations: 0.5531 MB / 364.4 MB, free: 7.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1266, allocations: 4 kB / 364.4 MB, free: 7.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1266, allocations: 0 / 364.4 MB, free: 7.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1266, allocations: 0 / 364.4 MB, free: 7.25 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001632/0.1282, allocations: 0.7992 MB / 365.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.1283, allocations: 16.03 kB / 365.2 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.1284, allocations: 74.66 kB / 365.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002561/0.1287, allocations: 64.36 kB / 365.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.1292, allocations: 303.4 kB / 365.6 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.911e-05/0.1292, allocations: 29.38 kB / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.208e-05/0.1293, allocations: 36.38 kB / 365.7 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.1304, allocations: 0.5046 MB / 366.2 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.1305, allocations: 0 / 366.2 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.1305, allocations: 16 kB / 366.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.1305, allocations: 8 kB / 366.2 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.1319, allocations: 0.5035 MB / 366.7 MB, free: 4.785 MB / 302.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.002739/0.1347, allocations: 1.667 MB / 368.4 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1358, allocations: 435.4 kB / 368.8 MB, free: 2.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005313/0.1363, allocations: 243.2 kB / 369.1 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.348e-05/0.1364, allocations: 12.31 kB / 369.1 MB, free: 2.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.1364, allocations: 34.89 kB / 369.1 MB, free: 2.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.733e-06/0.1364, allocations: 4 kB / 369.1 MB, free: 2.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005095/0.1415, allocations: 1.365 MB / 370.5 MB, free: 0.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.1417, allocations: 158.2 kB / 370.6 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003818/0.1421, allocations: 271 kB / 370.9 MB, free: 376 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.1421, allocations: 33.7 kB / 370.9 MB, free: 336 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.1423, allocations: 208.3 kB / 371.1 MB, free: 124 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1774/0.3197, allocations: 135.1 kB / 371.3 MB, free: 20.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002092/0.32, allocations: 79.36 kB / 371.4 MB, free: 20.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3201, allocations: 343.1 kB / 371.7 MB, free: 19.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006226/0.3207, allocations: 186.2 kB / 371.9 MB, free: 19.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006201/0.3213, allocations: 278.7 kB / 372.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.3224, allocations: 429.3 kB / 372.6 MB, free: 19.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3224, allocations: 0 / 372.6 MB, free: 19.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002009/0.3244, allocations: 0.6825 MB / 373.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.3244, allocations: 5.406 kB / 373.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3245, allocations: 2.047 kB / 373.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.3259, allocations: 320 kB / 373.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.3263, allocations: 84.52 kB / 373.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.3274, allocations: 1.342 MB / 375 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005216/0.328, allocations: 79.77 kB / 375.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.328, allocations: 16.69 kB / 375.1 MB, free: 18.61 MB / 302.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.0001929/0.3282, allocations: 164.5 kB / 375.2 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.787e-05/0.3283, allocations: 39.64 kB / 375.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/0.3305, allocations: 0.7305 MB / 376 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.3305, allocations: 6.062 kB / 376 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.3306, allocations: 0 / 376 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.3306, allocations: 5.109 kB / 376 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007297/0.3313, allocations: 467.5 kB / 376.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.239e-06/0.3313, allocations: 0 / 376.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.3317, allocations: 55.52 kB / 376.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001295/0.333, allocations: 322.2 kB / 376.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.333, allocations: 11.72 kB / 376.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.3341, allocations: 1.357 MB / 378.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3341, allocations: 0.75 kB / 378.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/0.3367, allocations: 1.017 MB / 379.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.399e-05/0.3368, allocations: 123.5 kB / 379.4 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.281e-05/0.3369, allocations: 11.45 kB / 379.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000379/0.3372, allocations: 40.55 kB / 379.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/0.3373, allocations: 23.86 kB / 379.4 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.3374, allocations: 13.73 kB / 379.4 MB, free: 16.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002687/0.3377, allocations: 202.4 kB / 379.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3377, allocations: 1.094 kB / 379.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005373/0.3382, allocations: 106 kB / 379.7 MB, free: 15.94 MB / 302.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.002975/0.3412, allocations: 1.563 MB / 381.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.3427, allocations: 490.6 kB / 381.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3427, allocations: 1.094 kB / 381.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006346/0.3434, allocations: 261.3 kB / 382 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005283/0.3439, allocations: 55.2 kB / 382.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007846/0.3518, allocations: 4.092 MB / 386.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.3521, allocations: 0.795 MB / 387 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001872/0.3523, allocations: 31.53 kB / 387 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.3524, allocations: 126.4 kB / 387.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3525, allocations: 0 / 387.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04339/0.3959, allocations: 9.241 MB / 396.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.36, allocations: 5.062 kB / 396.4 MB, free: 7.781 MB / 302.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)