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.001175/0.001175, allocations: 96.3 kB / 16.3 MB, free: 5.535 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.001132/0.001132, allocations: 183.5 kB / 17.2 MB, free: 5.469 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.473/1.473, allocations: 223.2 MB / 241.1 MB, free: 14.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002606, allocations: 4 kB / 300.8 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.109, allocations: 50.42 MB / 351.2 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.003078/0.1121, allocations: 2.528 MB / 353.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1136, allocations: 0.7812 MB / 354.5 MB, free: 400 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.1137, allocations: 8 kB / 354.5 MB, free: 392 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.294e-05/0.1138, allocations: 39.69 kB / 354.6 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.1141, allocations: 123.6 kB / 354.7 MB, free: 228 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.1144, allocations: 103.9 kB / 354.8 MB, free: 124 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004393/0.1148, allocations: 356.8 kB / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.1151, allocations: 131.6 kB / 355.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.1153, allocations: 187.3 kB / 355.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.1156, allocations: 215.2 kB / 355.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.1157, allocations: 24 kB / 355.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.022e-05/0.1158, allocations: 36 kB / 355.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.546e-05/0.1158, allocations: 83.66 kB / 355.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.868e-05/0.1159, allocations: 97.5 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003669/0.1163, allocations: 399.1 kB / 356.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1163, allocations: 4 kB / 356.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1163, allocations: 0 / 356.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.1163, allocations: 4 kB / 356.3 MB, free: 14.61 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.001447/0.1178, allocations: 0.7602 MB / 357.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.1178, allocations: 12.03 kB / 357.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.313e-05/0.1179, allocations: 70.53 kB / 357.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.313e-05/0.118, allocations: 47.44 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003728/0.1184, allocations: 305.2 kB / 357.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.1184, allocations: 29 kB / 357.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.34e-05/0.1185, allocations: 39.98 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.1196, allocations: 0.5201 MB / 358.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.1197, allocations: 3.938 kB / 358.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.1197, allocations: 19.95 kB / 358.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.1197, allocations: 8 kB / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.1211, allocations: 0.5699 MB / 358.7 MB, free: 12.11 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.002596/0.1237, allocations: 1.694 MB / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.1249, allocations: 459.7 kB / 360.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.305e-05/0.1249, allocations: 20.3 kB / 360.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.125, allocations: 34.89 kB / 360.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.475e-06/0.125, allocations: 7.938 kB / 360.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005097/0.1301, allocations: 1.53 MB / 362.4 MB, free: 8.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.568e-05/0.1302, allocations: 158.2 kB / 362.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003397/0.1305, allocations: 274.9 kB / 362.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.546e-05/0.1306, allocations: 33.7 kB / 362.9 MB, free: 7.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1307, allocations: 204.4 kB / 363.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.1309, allocations: 138 kB / 363.2 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.1309, allocations: 8 kB / 363.2 MB, free: 7.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.131, allocations: 346.8 kB / 363.6 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005423/0.1316, allocations: 200.7 kB / 363.7 MB, free: 6.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005986/0.1322, allocations: 314.4 kB / 364.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005448/0.1328, allocations: 215.9 kB / 364.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1328, allocations: 0 / 364.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002009/0.1348, allocations: 0.7678 MB / 365 MB, free: 5.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.1348, allocations: 8 kB / 365 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1348, allocations: 4.062 kB / 365 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/0.1362, allocations: 329.4 kB / 365.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.1366, allocations: 91.88 kB / 365.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.138, allocations: 1.366 MB / 366.8 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/0.1386, allocations: 91.72 kB / 366.9 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.1386, allocations: 19.98 kB / 366.9 MB, free: 3.469 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.0002308/0.1389, allocations: 161.7 kB / 367.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-05/0.1389, allocations: 35.58 kB / 367.1 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.1412, allocations: 0.825 MB / 368 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.1412, allocations: 4 kB / 368 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.1412, allocations: 4 kB / 368 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1412, allocations: 3.984 kB / 368 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006324/0.1419, allocations: 457 kB / 368.4 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.1419, allocations: 4 kB / 368.4 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/0.1422, allocations: 67.89 kB / 368.5 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.1435, allocations: 341.4 kB / 368.8 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.489e-05/0.1435, allocations: 11.98 kB / 368.8 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.145, allocations: 1.374 MB / 370.2 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.145, allocations: 128 / 370.2 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2019/0.3469, allocations: 1.117 MB / 371.3 MB, free: 25.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.3471, allocations: 117.9 kB / 371.4 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.384e-05/0.3472, allocations: 9.25 kB / 371.4 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/0.3477, allocations: 63.45 kB / 371.5 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.3478, allocations: 23.09 kB / 371.5 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.336e-05/0.3478, allocations: 15.12 kB / 371.5 MB, free: 25.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003244/0.3482, allocations: 190.2 kB / 371.7 MB, free: 25.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3482, allocations: 0.9062 kB / 371.7 MB, free: 25.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005313/0.3487, allocations: 110.3 kB / 371.8 MB, free: 25.06 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.003584/0.3523, allocations: 1.679 MB / 373.5 MB, free: 24.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.3539, allocations: 0.5144 MB / 374 MB, free: 24.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.3539, allocations: 1.312 kB / 374 MB, free: 24.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007611/0.3547, allocations: 277.6 kB / 374.3 MB, free: 24.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.3552, allocations: 46.66 kB / 374.3 MB, free: 24.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006591/0.3618, allocations: 3.852 MB / 378.2 MB, free: 22.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.3622, allocations: 0.8042 MB / 379 MB, free: 21.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001987/0.3624, allocations: 32.78 kB / 379 MB, free: 21.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.3626, allocations: 126.6 kB / 379.2 MB, free: 21.27 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3626, allocations: 0 / 379.2 MB, free: 21.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.3889, allocations: 8.344 MB / 387.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.3891, allocations: 227.9 kB / 387.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/2.556, allocations: 3.938 kB / 387.7 MB, free: 18.52 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