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.001225/0.001225, allocations: 85.72 kB / 16.31 MB, free: 6.453 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.001301/0.001302, allocations: 179.3 kB / 17.21 MB, free: 6.328 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.484/1.484, allocations: 223.3 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002571/0.0002571, allocations: 6.094 kB / 300.9 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 50.41 MB / 351.3 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.002925/0.1075, allocations: 2.672 MB / 354 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.1086, allocations: 0.7577 MB / 354.8 MB, free: 232 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.1088, allocations: 7.938 kB / 354.8 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.1089, allocations: 47.62 kB / 354.8 MB, free: 176 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001644/0.1091, allocations: 91.22 kB / 354.9 MB, free: 84 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003019/0.1094, allocations: 115.9 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004384/0.1099, allocations: 499.5 kB / 355.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.1101, allocations: 131.5 kB / 355.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.1103, allocations: 179.4 kB / 355.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.1106, allocations: 223.1 kB / 356 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.001e-05/0.1106, allocations: 28 kB / 356.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.349e-05/0.1107, allocations: 28 kB / 356.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.39e-05/0.1108, allocations: 83.66 kB / 356.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.613e-05/0.1109, allocations: 101.5 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003781/0.1113, allocations: 407.1 kB / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1113, allocations: 0 / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1113, allocations: 0 / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.1113, allocations: 0 / 356.7 MB, free: 14.31 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.001313/0.1126, allocations: 0.7641 MB / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.1127, allocations: 8.031 kB / 357.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.085e-05/0.1128, allocations: 74.53 kB / 357.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.267e-05/0.1128, allocations: 47.44 kB / 357.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.1132, allocations: 301.2 kB / 357.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.1132, allocations: 33 kB / 357.9 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.1133, allocations: 36 kB / 357.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.1143, allocations: 0.5279 MB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1143, allocations: 3.938 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.1144, allocations: 19.95 kB / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1144, allocations: 12 kB / 358.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.1157, allocations: 0.5582 MB / 359 MB, free: 11.82 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.002399/0.1181, allocations: 1.698 MB / 360.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.1191, allocations: 459.7 kB / 361.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005036/0.1196, allocations: 265.7 kB / 361.4 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.1197, allocations: 16.3 kB / 361.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.1197, allocations: 38.89 kB / 361.5 MB, free: 9.188 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.265e-06/0.1197, allocations: 4 kB / 361.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004503/0.1242, allocations: 1.537 MB / 363 MB, free: 7.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.269e-05/0.1244, allocations: 162.2 kB / 363.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000331/0.1247, allocations: 270.9 kB / 363.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.1248, allocations: 33.7 kB / 363.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.1249, allocations: 208.4 kB / 363.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.125, allocations: 138 kB / 363.8 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.346e-05/0.125, allocations: 8 kB / 363.8 MB, free: 6.738 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1252, allocations: 346.8 kB / 364.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/0.1257, allocations: 196.8 kB / 364.4 MB, free: 6.199 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005634/0.1263, allocations: 314.4 kB / 364.7 MB, free: 5.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000512/0.1268, allocations: 219.9 kB / 364.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1268, allocations: 0 / 364.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001875/0.1287, allocations: 0.7717 MB / 365.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.1287, allocations: 4 kB / 365.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1287, allocations: 8 kB / 365.7 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/0.13, allocations: 333.5 kB / 366 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.1303, allocations: 87.88 kB / 366.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.1316, allocations: 1.366 MB / 367.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/0.1321, allocations: 91.69 kB / 367.5 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.1322, allocations: 16 kB / 367.6 MB, free: 2.902 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002344/0.1324, allocations: 157.7 kB / 367.7 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.185e-05/0.1325, allocations: 43.58 kB / 367.8 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002148/0.1346, allocations: 0.8136 MB / 368.6 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.1347, allocations: 4 kB / 368.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1347, allocations: 3.938 kB / 368.6 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1347, allocations: 7.984 kB / 368.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000621/0.1353, allocations: 464.9 kB / 369 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1353, allocations: 0 / 369 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003044/0.1356, allocations: 67.89 kB / 369.1 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/0.1368, allocations: 337.4 kB / 369.4 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/0.1368, allocations: 11.98 kB / 369.4 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2118/0.3486, allocations: 1.374 MB / 370.8 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3487, allocations: 0.7188 kB / 370.8 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002865/0.3515, allocations: 1.124 MB / 371.9 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.3517, allocations: 115.1 kB / 372.1 MB, free: 24.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/0.3517, allocations: 9.438 kB / 372.1 MB, free: 24.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003843/0.3521, allocations: 59.81 kB / 372.1 MB, free: 24.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/0.3522, allocations: 28.86 kB / 372.2 MB, free: 24.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.059e-05/0.3523, allocations: 13.41 kB / 372.2 MB, free: 24.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002432/0.3525, allocations: 191.2 kB / 372.4 MB, free: 24.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3525, allocations: 0 / 372.4 MB, free: 24.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004383/0.353, allocations: 117.5 kB / 372.5 MB, free: 24.36 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.002796/0.3558, allocations: 1.677 MB / 374.1 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.3571, allocations: 0.5143 MB / 374.7 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3571, allocations: 0 / 374.7 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006166/0.3577, allocations: 284.8 kB / 374.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.3581, allocations: 45.05 kB / 375 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006307/0.3645, allocations: 2.795 MB / 377.8 MB, free: 22.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.3647, allocations: 0.8044 MB / 378.6 MB, free: 21.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.3649, allocations: 29.81 kB / 378.6 MB, free: 21.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.3651, allocations: 122.9 kB / 378.7 MB, free: 21.59 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3651, allocations: 0 / 378.7 MB, free: 21.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03043/0.3955, allocations: 8.379 MB / 387.1 MB, free: 19.08 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/0.3958, allocations: 229.2 kB / 387.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.498, allocations: 4 kB / 387.3 MB, free: 18.83 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/linux/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