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.001008/0.001008, allocations: 89.19 kB / 16.65 MB, free: 6.59 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.001147/0.001147, allocations: 185 kB / 17.57 MB, free: 6.199 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.414/1.414, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.0003198, allocations: 8 kB / 301.5 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1016, allocations: 50.43 MB / 351.9 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.003681/0.1054, allocations: 2.787 MB / 354.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.1071, allocations: 0.7768 MB / 355.5 MB, free: 4 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/0.1075, allocations: 4 kB / 355.5 MB, free: 0 / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.1077, allocations: 51.56 kB / 355.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000448/0.1082, allocations: 99.16 kB / 355.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005248/0.1087, allocations: 127.9 kB / 355.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007078/0.1095, allocations: 0.519 MB / 356.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.1098, allocations: 148.8 kB / 356.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003752/0.1102, allocations: 179.3 kB / 356.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003751/0.1106, allocations: 231 kB / 356.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.496e-05/0.1107, allocations: 24 kB / 356.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.1108, allocations: 32 kB / 356.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.228e-05/0.1109, allocations: 95.53 kB / 357 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002574/0.1112, allocations: 232.6 kB / 357.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005317/0.1117, allocations: 0.514 MB / 357.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1117, allocations: 0 / 357.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1117, allocations: 0 / 357.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.1118, allocations: 4 kB / 357.7 MB, free: 13.75 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.001649/0.1134, allocations: 0.7526 MB / 358.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.1135, allocations: 8.031 kB / 358.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001446/0.1136, allocations: 74.72 kB / 358.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.1138, allocations: 48.38 kB / 358.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004557/0.1142, allocations: 314.4 kB / 358.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.1143, allocations: 29.38 kB / 359 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.299e-05/0.1143, allocations: 36.38 kB / 359 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.1156, allocations: 0.532 MB / 359.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.1156, allocations: 0 / 359.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.884e-05/0.1157, allocations: 27.97 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1157, allocations: 8 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.1172, allocations: 0.566 MB / 360.1 MB, free: 11.25 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.002814/0.12, allocations: 1.69 MB / 361.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.1212, allocations: 467.6 kB / 362.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005607/0.1218, allocations: 269.3 kB / 362.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.199e-05/0.1218, allocations: 8.312 kB / 362.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.1219, allocations: 38.89 kB / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.485e-06/0.1219, allocations: 0 / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005203/0.1271, allocations: 1.549 MB / 364.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.436e-05/0.1272, allocations: 158.2 kB / 364.3 MB, free: 6.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003486/0.1276, allocations: 278.9 kB / 364.6 MB, free: 6.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.1276, allocations: 29.7 kB / 364.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.1278, allocations: 212.3 kB / 364.8 MB, free: 6.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.1279, allocations: 134 kB / 364.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/0.128, allocations: 41.7 kB / 365 MB, free: 6.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1281, allocations: 342.8 kB / 365.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005455/0.1287, allocations: 204.8 kB / 365.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006143/0.1293, allocations: 310.4 kB / 365.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.1304, allocations: 470.5 kB / 366.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1304, allocations: 4 kB / 366.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001953/0.1323, allocations: 0.7366 MB / 367 MB, free: 4.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.1324, allocations: 8 kB / 367 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.1324, allocations: 0 / 367 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.1338, allocations: 345.4 kB / 367.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.1341, allocations: 83.88 kB / 367.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.1355, allocations: 1.37 MB / 368.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.136, allocations: 95.61 kB / 368.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.1361, allocations: 19.94 kB / 368.9 MB, free: 2.039 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.0002219/0.1363, allocations: 157.8 kB / 369.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.952e-05/0.1364, allocations: 39.56 kB / 369.1 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002335/0.1387, allocations: 0.8212 MB / 369.9 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.1387, allocations: 12 kB / 369.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.1387, allocations: 0 / 369.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1388, allocations: 0 / 369.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006239/0.1394, allocations: 469 kB / 370.4 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1394, allocations: 0 / 370.4 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.1397, allocations: 63.89 kB / 370.5 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.141, allocations: 345.6 kB / 370.8 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.09e-05/0.141, allocations: 8 kB / 370.8 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1733/0.3144, allocations: 1.38 MB / 372.2 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3144, allocations: 0 / 372.2 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003029/0.3174, allocations: 1.131 MB / 373.3 MB, free: 24.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.3176, allocations: 111.6 kB / 373.4 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.837e-05/0.3176, allocations: 9.062 kB / 373.4 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004177/0.318, allocations: 65.16 kB / 373.5 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.421e-05/0.3181, allocations: 22.84 kB / 373.5 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/0.3182, allocations: 17.53 kB / 373.5 MB, free: 24.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002861/0.3185, allocations: 190.8 kB / 373.7 MB, free: 24.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3185, allocations: 0 / 373.7 MB, free: 24.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004601/0.3189, allocations: 112.7 kB / 373.8 MB, free: 24.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.003233/0.3222, allocations: 1.681 MB / 375.5 MB, free: 23.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.3237, allocations: 0.5169 MB / 376 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3237, allocations: 4.062 kB / 376 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006606/0.3244, allocations: 284.1 kB / 376.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.3249, allocations: 45.41 kB / 376.4 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0075/0.3324, allocations: 4.453 MB / 380.8 MB, free: 20.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.3327, allocations: 0.799 MB / 381.6 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.3329, allocations: 34.58 kB / 381.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/0.3331, allocations: 122.7 kB / 381.8 MB, free: 19.99 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3331, allocations: 0 / 381.8 MB, free: 19.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02167/0.3547, allocations: 8.543 MB / 390.3 MB, free: 17.22 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.3549, allocations: 235.8 kB / 390.5 MB, free: 16.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.468, allocations: 1.375 kB / 390.5 MB, free: 16.97 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