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.001409/0.001409, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001393/0.001393, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.462/1.462, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001189/0.001189, allocations: 52.14 kB / 280.2 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1153, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.00477/0.1201, allocations: 3.134 MB / 330 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.1219, allocations: 0.8201 MB / 330.8 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001991/0.1221, allocations: 4 kB / 330.8 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.1224, allocations: 43.62 kB / 330.9 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00023/0.1226, allocations: 99.17 kB / 331 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004738/0.1231, allocations: 119.9 kB / 331.1 MB, free: 460 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006222/0.1238, allocations: 0.5269 MB / 331.6 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003903/0.1242, allocations: 172.3 kB / 331.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.1245, allocations: 211.2 kB / 332 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.1248, allocations: 262.9 kB / 332.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.63e-05/0.1249, allocations: 56 kB / 332.3 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.125, allocations: 52 kB / 332.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.1251, allocations: 119.6 kB / 332.5 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002235/0.1254, allocations: 234.9 kB / 332.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005965/0.126, allocations: 0.5414 MB / 333.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.126, allocations: 0 / 333.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.126, allocations: 0 / 333.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.126, allocations: 0 / 333.2 MB, free: 14.28 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.001656/0.1277, allocations: 0.7954 MB / 334 MB, free: 13.44 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1277, allocations: 8.031 kB / 334 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.797e-05/0.1278, allocations: 74.72 kB / 334.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.871e-05/0.1279, allocations: 48.38 kB / 334.2 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003948/0.1284, allocations: 302.5 kB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.1284, allocations: 25.38 kB / 334.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.771e-05/0.1285, allocations: 36.38 kB / 334.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.1296, allocations: 0.5124 MB / 335 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.1296, allocations: 0 / 335 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.1297, allocations: 16 kB / 335 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.1297, allocations: 8 kB / 335.1 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.131, allocations: 0.4957 MB / 335.5 MB, free: 11.85 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.002565/0.1335, allocations: 1.682 MB / 337.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.1346, allocations: 427.6 kB / 337.6 MB, free: 9.602 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004853/0.1351, allocations: 237.4 kB / 337.9 MB, free: 9.367 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.1352, allocations: 20.3 kB / 337.9 MB, free: 9.348 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.1352, allocations: 38.89 kB / 337.9 MB, free: 9.301 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/0.1353, allocations: 0 / 337.9 MB, free: 9.301 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004901/0.1402, allocations: 1.361 MB / 339.3 MB, free: 7.891 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.1403, allocations: 166.2 kB / 339.5 MB, free: 7.691 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.1407, allocations: 263 kB / 339.7 MB, free: 7.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.1407, allocations: 37.7 kB / 339.8 MB, free: 7.387 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.1409, allocations: 204.3 kB / 340 MB, free: 7.184 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.141, allocations: 142 kB / 340.1 MB, free: 7.043 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.1412, allocations: 78.12 kB / 340.2 MB, free: 6.961 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1413, allocations: 342.8 kB / 340.5 MB, free: 6.617 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004842/0.1418, allocations: 188.7 kB / 340.7 MB, free: 6.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005559/0.1423, allocations: 278.5 kB / 341 MB, free: 6.125 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009458/0.1433, allocations: 426.5 kB / 341.4 MB, free: 5.684 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.1433, allocations: 4 kB / 341.4 MB, free: 5.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001866/0.1452, allocations: 0.678 MB / 342.1 MB, free: 4.988 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.1452, allocations: 8 kB / 342.1 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.1452, allocations: 0 / 342.1 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001403/0.1467, allocations: 325.4 kB / 342.4 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.147, allocations: 79.88 kB / 342.5 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.1484, allocations: 1.354 MB / 343.8 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/0.1489, allocations: 79.69 kB / 343.9 MB, free: 3.094 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-05/0.1489, allocations: 16 kB / 343.9 MB, free: 3.078 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.0002316/0.1492, allocations: 157.8 kB / 344.1 MB, free: 2.914 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.197e-05/0.1492, allocations: 31.62 kB / 344.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.1514, allocations: 0.7277 MB / 344.8 MB, free: 2.141 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.1514, allocations: 4 kB / 344.8 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1514, allocations: 0 / 344.8 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.1514, allocations: 7.984 kB / 344.8 MB, free: 2.129 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006165/0.152, allocations: 457 kB / 345.3 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.152, allocations: 0 / 345.3 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002892/0.1523, allocations: 55.95 kB / 345.3 MB, free: 1.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.1536, allocations: 325.3 kB / 345.7 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.394e-05/0.1536, allocations: 11.98 kB / 345.7 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.1549, allocations: 1.358 MB / 347 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.155, allocations: 3.984 kB / 347 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.1574, allocations: 1.023 MB / 348.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.1576, allocations: 116.6 kB / 348.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.926e-05/0.1576, allocations: 8 kB / 348.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.158, allocations: 47.94 kB / 348.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.984e-05/0.1581, allocations: 23.97 kB / 348.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.1581, allocations: 16.25 kB / 348.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002357/0.1584, allocations: 189.9 kB / 348.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1584, allocations: 3.938 kB / 348.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.1588, allocations: 123.6 kB / 348.6 MB, free: 14.24 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.002896/0.1617, allocations: 1.561 MB / 350.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.1631, allocations: 487.5 kB / 350.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1631, allocations: 0 / 350.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005951/0.1637, allocations: 252.1 kB / 350.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005337/0.1643, allocations: 48.03 kB / 350.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00737/0.1717, allocations: 4.213 MB / 355.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.1721, allocations: 0.7956 MB / 355.9 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.1723, allocations: 26.97 kB / 355.9 MB, free: 6.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.1725, allocations: 127.4 kB / 356.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1725, allocations: 0 / 356.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02556/0.1981, allocations: 8.962 MB / 365 MB, free: 13.56 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/0.1983, allocations: 239.3 kB / 365.3 MB, free: 13.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.269/2.467, allocations: 0 / 365.3 MB, free: 13.3 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