Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",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.001012/0.001012, allocations: 95.61 kB / 17.3 MB, free: 6.391 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.001252/0.001252, allocations: 175.6 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.323/1.323, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004368/0.0004369, allocations: 8 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08856, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.003589/0.09219, allocations: 2.761 MB / 331.8 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.09403, allocations: 0.8123 MB / 332.6 MB, free: 72 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003588/0.09442, allocations: 11.94 kB / 332.6 MB, free: 60 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002334/0.09467, allocations: 35.69 kB / 332.7 MB, free: 24 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004169/0.0951, allocations: 103.2 kB / 332.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004647/0.09558, allocations: 119.9 kB / 332.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005263/0.09612, allocations: 0.5073 MB / 333.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002942/0.09642, allocations: 144.8 kB / 333.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.0967, allocations: 187.3 kB / 333.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.09697, allocations: 223 kB / 333.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-05/0.09703, allocations: 28 kB / 334 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.997e-05/0.09712, allocations: 36 kB / 334 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.014e-05/0.09721, allocations: 83.61 kB / 334.1 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.09742, allocations: 240.6 kB / 334.3 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004505/0.09788, allocations: 0.5062 MB / 334.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.09789, allocations: 0 / 334.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.0979, allocations: 0 / 334.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.495e-06/0.09792, allocations: 0 / 334.8 MB, free: 13.85 MB / 286.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.001484/0.09941, allocations: 0.7526 MB / 335.6 MB, free: 13.04 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.09947, allocations: 8.031 kB / 335.6 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.116e-05/0.09956, allocations: 74.72 kB / 335.7 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.965e-05/0.09966, allocations: 48.38 kB / 335.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.1, allocations: 306.5 kB / 336 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.1001, allocations: 29.38 kB / 336 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/0.1002, allocations: 36.31 kB / 336.1 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.1012, allocations: 0.5395 MB / 336.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.1013, allocations: 0 / 336.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.1013, allocations: 16 kB / 336.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.1013, allocations: 8 kB / 336.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.1027, allocations: 0.5738 MB / 337.2 MB, free: 11.35 MB / 286.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.002368/0.1051, allocations: 1.698 MB / 338.9 MB, free: 9.504 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.1062, allocations: 471.6 kB / 339.4 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005394/0.1068, allocations: 269.3 kB / 339.6 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.749e-05/0.1068, allocations: 12.31 kB / 339.6 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.1068, allocations: 38.89 kB / 339.7 MB, free: 8.711 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/0.1069, allocations: 0 / 339.7 MB, free: 8.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.005163/0.112, allocations: 1.548 MB / 341.2 MB, free: 7.113 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.221e-05/0.1121, allocations: 158.2 kB / 341.4 MB, free: 6.922 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/0.1125, allocations: 263 kB / 341.6 MB, free: 6.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.1125, allocations: 33.7 kB / 341.7 MB, free: 6.621 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.1126, allocations: 212.3 kB / 341.9 MB, free: 6.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.1128, allocations: 134 kB / 342 MB, free: 6.277 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.883e-05/0.1128, allocations: 37.7 kB / 342 MB, free: 6.234 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.113, allocations: 346.8 kB / 342.4 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005267/0.1135, allocations: 200.8 kB / 342.6 MB, free: 5.688 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005872/0.1141, allocations: 302.5 kB / 342.9 MB, free: 5.359 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.1151, allocations: 478.5 kB / 343.3 MB, free: 4.867 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1151, allocations: 0 / 343.3 MB, free: 4.867 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001901/0.1171, allocations: 0.7444 MB / 344.1 MB, free: 4.109 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1171, allocations: 8 kB / 344.1 MB, free: 4.102 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1171, allocations: 0 / 344.1 MB, free: 4.102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/0.1184, allocations: 345.4 kB / 344.4 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/0.1188, allocations: 83.88 kB / 344.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.12, allocations: 1.366 MB / 345.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005082/0.1206, allocations: 103.5 kB / 346 MB, free: 2.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.1206, allocations: 19.98 kB / 346 MB, free: 2.137 MB / 286.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.0001891/0.1208, allocations: 149.8 kB / 346.1 MB, free: 1.98 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.522e-05/0.1209, allocations: 35.62 kB / 346.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/0.1231, allocations: 0.8253 MB / 347 MB, free: 1.105 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-06/0.1231, allocations: 4 kB / 347 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1231, allocations: 0 / 347 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.1231, allocations: 4 kB / 347 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000522/0.1237, allocations: 461 kB / 347.5 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1237, allocations: 0 / 347.5 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.124, allocations: 71.89 kB / 347.5 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.1252, allocations: 337.4 kB / 347.9 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.1252, allocations: 12 kB / 347.9 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.1265, allocations: 1.378 MB / 349.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1265, allocations: 0 / 349.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.1291, allocations: 1.128 MB / 350.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.196e-05/0.1292, allocations: 112.5 kB / 350.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.579e-05/0.1293, allocations: 12 kB / 350.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003975/0.1297, allocations: 60 kB / 350.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/0.1298, allocations: 31.91 kB / 350.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.788e-05/0.1298, allocations: 11.98 kB / 350.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.13, allocations: 197.9 kB / 350.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1301, allocations: 0 / 350.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004188/0.1305, allocations: 111.8 kB / 350.9 MB, free: 13.05 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.003045/0.1335, allocations: 1.682 MB / 352.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.1349, allocations: 0.5074 MB / 353.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.1349, allocations: 0 / 353.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006517/0.1355, allocations: 276.4 kB / 353.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.136, allocations: 48.92 kB / 353.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008372/0.1444, allocations: 4.466 MB / 357.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000593/0.145, allocations: 0.7995 MB / 358.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.1453, allocations: 26.97 kB / 358.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.1455, allocations: 119.4 kB / 358.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of SimCode: time 1.653e-06/0.1455, allocations: 0 / 358.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.1672, allocations: 8.486 MB / 367.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.1675, allocations: 234.5 kB / 367.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.948/2.115, allocations: 0 / 367.5 MB, free: 12.2 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat