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.001286/0.001286, allocations: 107.8 kB / 17.16 MB, free: 6.312 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.001287/0.001287, allocations: 194 kB / 18.08 MB, free: 5.406 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.325/1.325, allocations: 205.1 MB / 223.9 MB, free: 12.53 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.001126/0.001127, allocations: 43.92 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08777/0.08891, allocations: 46.62 MB / 326.7 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004034/0.09299, allocations: 3.134 MB / 329.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.09431, allocations: 0.8239 MB / 330.7 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.09446, allocations: 4 kB / 330.7 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.09464, allocations: 35.69 kB / 330.7 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.09481, allocations: 99.16 kB / 330.8 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.09511, allocations: 127.8 kB / 330.9 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003652/0.09548, allocations: 0.5112 MB / 331.4 MB, free: 48 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.09573, allocations: 140.8 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/0.09595, allocations: 203.3 kB / 331.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.09617, allocations: 239 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.698e-05/0.09623, allocations: 32 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.986e-05/0.09633, allocations: 36 kB / 332.1 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.563e-05/0.09642, allocations: 99.58 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.0966, allocations: 218.9 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003914/0.09699, allocations: 0.5258 MB / 332.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.097, allocations: 0 / 332.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.09701, allocations: 0 / 332.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.09702, allocations: 0 / 332.9 MB, free: 14.56 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.001415/0.09844, allocations: 0.7876 MB / 333.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.09849, allocations: 8.031 kB / 333.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.762e-05/0.09857, allocations: 74.72 kB / 333.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.726e-05/0.09866, allocations: 56.38 kB / 333.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.09896, allocations: 314.3 kB / 334.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.09899, allocations: 29.38 kB / 334.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.535e-05/0.09906, allocations: 36.38 kB / 334.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009766/0.1, allocations: 0.5007 MB / 334.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1001, allocations: 3.938 kB / 334.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.1001, allocations: 16 kB / 334.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.1001, allocations: 12 kB / 334.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.1014, allocations: 0.4957 MB / 335.2 MB, free: 12.12 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.002298/0.1037, allocations: 1.678 MB / 336.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.1047, allocations: 427.5 kB / 337.3 MB, free: 9.871 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004757/0.1052, allocations: 241.4 kB / 337.5 MB, free: 9.633 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.1052, allocations: 12.31 kB / 337.6 MB, free: 9.621 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.1053, allocations: 38.89 kB / 337.6 MB, free: 9.574 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.064e-06/0.1053, allocations: 0 / 337.6 MB, free: 9.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004713/0.11, allocations: 1.365 MB / 339 MB, free: 8.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.058e-05/0.1101, allocations: 170.2 kB / 339.1 MB, free: 7.957 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.1104, allocations: 259 kB / 339.4 MB, free: 7.699 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/0.1104, allocations: 33.7 kB / 339.4 MB, free: 7.66 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1106, allocations: 204.3 kB / 339.6 MB, free: 7.457 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.573e-05/0.1107, allocations: 138 kB / 339.7 MB, free: 7.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.1108, allocations: 74.12 kB / 339.8 MB, free: 7.242 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1109, allocations: 346.8 kB / 340.2 MB, free: 6.895 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000469/0.1114, allocations: 180.8 kB / 340.3 MB, free: 6.715 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005082/0.1119, allocations: 282.5 kB / 340.6 MB, free: 6.406 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008824/0.1128, allocations: 430.5 kB / 341 MB, free: 5.961 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1128, allocations: 0 / 341 MB, free: 5.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001716/0.1145, allocations: 0.6742 MB / 341.7 MB, free: 5.273 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1146, allocations: 7.938 kB / 341.7 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1146, allocations: 11.92 kB / 341.7 MB, free: 5.254 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.1159, allocations: 317.5 kB / 342 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.1162, allocations: 75.88 kB / 342.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.1174, allocations: 1.354 MB / 343.5 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004544/0.1178, allocations: 83.67 kB / 343.5 MB, free: 3.375 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.1179, allocations: 12 kB / 343.6 MB, free: 3.363 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.0001945/0.1181, allocations: 157.8 kB / 343.7 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.869e-05/0.1182, allocations: 31.62 kB / 343.7 MB, free: 3.168 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002133/0.1203, allocations: 0.7277 MB / 344.5 MB, free: 2.426 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.1203, allocations: 7.984 kB / 344.5 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1203, allocations: 3.938 kB / 344.5 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1203, allocations: 0 / 344.5 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005284/0.1209, allocations: 457 kB / 344.9 MB, free: 1.918 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1209, allocations: 4 kB / 344.9 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002938/0.1212, allocations: 63.94 kB / 345 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/0.1224, allocations: 329.3 kB / 345.3 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.156e-05/0.1224, allocations: 4 kB / 345.3 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.1236, allocations: 1.362 MB / 346.7 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1236, allocations: 0 / 346.7 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.126, allocations: 1.019 MB / 347.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.853e-05/0.1261, allocations: 116.7 kB / 347.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.626e-05/0.1262, allocations: 12 kB / 347.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.1265, allocations: 39.95 kB / 347.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.124e-05/0.1266, allocations: 27.89 kB / 347.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.1266, allocations: 16 kB / 347.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002024/0.1268, allocations: 190 kB / 348.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1268, allocations: 0 / 348.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000405/0.1273, allocations: 119.6 kB / 348.2 MB, free: 14.53 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.002679/0.1299, allocations: 1.561 MB / 349.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.1311, allocations: 475.5 kB / 350.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.1312, allocations: 0 / 350.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005499/0.1317, allocations: 252.1 kB / 350.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004816/0.1322, allocations: 52.98 kB / 350.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006702/0.1389, allocations: 4.212 MB / 354.7 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.1393, allocations: 0.7956 MB / 355.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.1394, allocations: 26.97 kB / 355.6 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.1396, allocations: 127.4 kB / 355.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1396, allocations: 0 / 355.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03966/0.1793, allocations: 8.607 MB / 364.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003011/0.1796, allocations: 235.2 kB / 364.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.267, allocations: 0 / 364.5 MB, free: 13.95 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