Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_0_0_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.002101/0.002101, allocations: 109.7 kB / 16.63 MB, free: 6.816 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.002195/0.002195, allocations: 189.9 kB / 17.55 MB, free: 5.949 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.51/1.51, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 45.55 kB / 300.2 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1173, allocations: 49.44 MB / 349.7 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.006139/0.1235, allocations: 3.169 MB / 352.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.1252, allocations: 0.7885 MB / 353.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.1254, allocations: 8 kB / 353.6 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.1256, allocations: 39.62 kB / 353.7 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.1259, allocations: 95.22 kB / 353.8 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003609/0.1262, allocations: 135.8 kB / 353.9 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005103/0.1268, allocations: 0.5425 MB / 354.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002964/0.1271, allocations: 164.3 kB / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002811/0.1274, allocations: 219.3 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.1277, allocations: 254.9 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.408e-05/0.1277, allocations: 52 kB / 355.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.1279, allocations: 56 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.189e-05/0.128, allocations: 111.6 kB / 355.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.1282, allocations: 242.9 kB / 355.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007402/0.1289, allocations: 0.5531 MB / 356.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.1289, allocations: 0 / 356.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.129, allocations: 3.938 kB / 356.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.129, allocations: 0 / 356.1 MB, free: 14.23 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.00177/0.1307, allocations: 0.7914 MB / 356.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.1308, allocations: 12.03 kB / 356.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.925e-05/0.1309, allocations: 74.72 kB / 357 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.021e-05/0.131, allocations: 48.45 kB / 357 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.1314, allocations: 310.4 kB / 357.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.1314, allocations: 29.38 kB / 357.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.885e-05/0.1315, allocations: 36.38 kB / 357.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.1325, allocations: 0.5007 MB / 357.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.1326, allocations: 0 / 357.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.783e-05/0.1326, allocations: 19.98 kB / 357.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.1326, allocations: 15.94 kB / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.1339, allocations: 0.4957 MB / 358.4 MB, free: 11.79 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.002737/0.1367, allocations: 1.667 MB / 360.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.1378, allocations: 430.8 kB / 360.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006094/0.1384, allocations: 237.3 kB / 360.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.409e-05/0.1384, allocations: 20.28 kB / 360.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.1385, allocations: 38.89 kB / 360.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.934e-06/0.1385, allocations: 0 / 360.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005086/0.1436, allocations: 1.372 MB / 362.2 MB, free: 7.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.1437, allocations: 158.2 kB / 362.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003547/0.1441, allocations: 263 kB / 362.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.49e-05/0.1441, allocations: 41.64 kB / 362.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.1443, allocations: 216.2 kB / 362.8 MB, free: 7.117 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.1444, allocations: 138 kB / 363 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.1446, allocations: 70.12 kB / 363 MB, free: 6.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002858/0.1449, allocations: 346.8 kB / 363.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005316/0.1454, allocations: 180.8 kB / 363.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005586/0.146, allocations: 278.5 kB / 363.8 MB, free: 6.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009605/0.147, allocations: 434.5 kB / 364.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.147, allocations: 0 / 364.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001942/0.1489, allocations: 0.6741 MB / 364.9 MB, free: 4.938 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.149, allocations: 4 kB / 364.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.149, allocations: 8.062 kB / 364.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/0.1504, allocations: 317.4 kB / 365.2 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003412/0.1507, allocations: 79.88 kB / 365.3 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.1521, allocations: 1.358 MB / 366.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004931/0.1526, allocations: 75.47 kB / 366.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.439e-05/0.1527, allocations: 19.98 kB / 366.8 MB, free: 3.027 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.0002389/0.1529, allocations: 161.8 kB / 366.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.153, allocations: 31.62 kB / 366.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/0.1553, allocations: 0.7238 MB / 367.7 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001142/0.1554, allocations: 4 kB / 367.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.1554, allocations: 192 / 367.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.1555, allocations: 3.984 kB / 367.7 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006744/0.1561, allocations: 476.8 kB / 368.1 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.1562, allocations: 4 kB / 368.2 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.1565, allocations: 51.95 kB / 368.2 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/0.1578, allocations: 337.2 kB / 368.5 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/0.158, allocations: 4 kB / 368.5 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2378/0.3958, allocations: 1.351 MB / 369.9 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.3959, allocations: 0.8125 kB / 369.9 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004212/0.4001, allocations: 1.022 MB / 370.9 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.4003, allocations: 112 kB / 371 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.4004, allocations: 13.12 kB / 371 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005917/0.401, allocations: 47.16 kB / 371.1 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.4012, allocations: 26.34 kB / 371.1 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.916e-05/0.4012, allocations: 12.88 kB / 371.1 MB, free: 25.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003923/0.4016, allocations: 194.1 kB / 371.3 MB, free: 25.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4017, allocations: 0.9375 kB / 371.3 MB, free: 25.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007303/0.4024, allocations: 110.5 kB / 371.4 MB, free: 25.63 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.004148/0.4066, allocations: 1.564 MB / 373 MB, free: 24.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.4086, allocations: 0.4895 MB / 373.5 MB, free: 24.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.4086, allocations: 1.781 kB / 373.5 MB, free: 24.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008773/0.4095, allocations: 254.8 kB / 373.7 MB, free: 24.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007684/0.4103, allocations: 45.2 kB / 373.8 MB, free: 24.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.4217, allocations: 4.226 MB / 378 MB, free: 22.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/0.4224, allocations: 0.8003 MB / 378.8 MB, free: 21.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003195/0.4227, allocations: 35.08 kB / 378.8 MB, free: 21.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.423, allocations: 122.4 kB / 378.9 MB, free: 21.42 MB / 302.1 MB Notification: Performance of SimCode: time 1.804e-06/0.423, allocations: 0 / 378.9 MB, free: 21.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.4562, allocations: 9.011 MB / 388 MB, free: 18.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/0.4565, allocations: 245.5 kB / 388.2 MB, free: 18.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.257/2.713, allocations: 5.094 kB / 388.2 MB, free: 18.22 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat