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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008096/0.0008096, allocations: 88.09 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002558/0.0002556, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2592, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09618/0.3554, allocations: 80.42 MB / 456.3 MB, free: 236 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.3557, allocations: 71.91 kB / 456.4 MB, free: 164 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01781/0.3735, allocations: 6.464 MB / 462.9 MB, free: 9.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.3736, allocations: 0 / 462.9 MB, free: 9.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.651e-05/0.3736, allocations: 8 kB / 462.9 MB, free: 9.656 MB / 346.7 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.001686/0.3753, allocations: 0.7524 MB / 463.6 MB, free: 8.855 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3754, allocations: 8.031 kB / 463.6 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001496/0.3755, allocations: 78.47 kB / 463.7 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.3756, allocations: 47.44 kB / 463.8 MB, free: 8.715 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004246/0.3761, allocations: 297.4 kB / 464 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.3761, allocations: 29 kB / 464.1 MB, free: 8.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.619e-05/0.3762, allocations: 35.94 kB / 464.1 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.3773, allocations: 0.5318 MB / 464.6 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.3773, allocations: 224 / 464.6 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.3774, allocations: 16 kB / 464.7 MB, free: 7.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.3774, allocations: 11.94 kB / 464.7 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.3788, allocations: 0.566 MB / 465.2 MB, free: 7.176 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.3816, allocations: 1.575 MB / 466.8 MB, free: 5.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.3828, allocations: 462.1 kB / 467.3 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.201e-05/0.3829, allocations: 16.27 kB / 467.3 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.3829, allocations: 34.89 kB / 467.3 MB, free: 4.969 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 2.244e-06/0.383, allocations: 0 / 467.3 MB, free: 4.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.004749/0.3877, allocations: 1.444 MB / 468.8 MB, free: 3.477 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.3878, allocations: 166.2 kB / 468.9 MB, free: 3.277 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.3882, allocations: 230.1 kB / 469.1 MB, free: 3.047 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.3882, allocations: 37.7 kB / 469.2 MB, free: 3.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.3884, allocations: 216.3 kB / 469.4 MB, free: 2.789 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.3885, allocations: 137.9 kB / 469.5 MB, free: 2.652 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/0.3885, allocations: 8 kB / 469.5 MB, free: 2.645 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3886, allocations: 342.8 kB / 469.9 MB, free: 2.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004869/0.3891, allocations: 204.8 kB / 470.1 MB, free: 2.098 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005391/0.3897, allocations: 302.5 kB / 470.4 MB, free: 1.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/0.3902, allocations: 215.9 kB / 470.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3902, allocations: 0 / 470.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002139/0.3924, allocations: 0.8265 MB / 471.4 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.3924, allocations: 8 kB / 471.4 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3924, allocations: 0 / 471.4 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.3937, allocations: 337.4 kB / 471.7 MB, free: 384 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000346/0.3941, allocations: 91.83 kB / 471.8 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.3954, allocations: 1.363 MB / 473.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005103/0.3959, allocations: 95.73 kB / 473.3 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.396, allocations: 19.94 kB / 473.3 MB, free: 14.76 MB / 362.7 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.0002384/0.3962, allocations: 161.7 kB / 473.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.486e-05/0.3963, allocations: 31.62 kB / 473.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002094/0.3984, allocations: 0.7941 MB / 474.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.3984, allocations: 4 kB / 474.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3984, allocations: 4 kB / 474.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3985, allocations: 3.984 kB / 474.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006216/0.3991, allocations: 461.1 kB / 474.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.3991, allocations: 0 / 474.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003087/0.3994, allocations: 71.89 kB / 474.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.4006, allocations: 339.3 kB / 475.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.4007, allocations: 8 kB / 475.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.4018, allocations: 1.386 MB / 476.5 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4019, allocations: 0 / 476.5 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002517/0.4044, allocations: 1.101 MB / 477.6 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.4045, allocations: 108.7 kB / 477.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.731e-05/0.4046, allocations: 11.94 kB / 477.8 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004065/0.405, allocations: 68 kB / 477.8 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.637e-05/0.4051, allocations: 15.97 kB / 477.8 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.4051, allocations: 15.98 kB / 477.9 MB, free: 10.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002416/0.4054, allocations: 190 kB / 478 MB, free: 9.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4054, allocations: 0 / 478 MB, free: 9.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004632/0.4059, allocations: 119.7 kB / 478.2 MB, free: 9.723 MB / 362.7 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.002859/0.4087, allocations: 1.659 MB / 479.8 MB, free: 8.027 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.41, allocations: 0.4995 MB / 480.3 MB, free: 7.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4101, allocations: 0 / 480.3 MB, free: 7.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006171/0.4107, allocations: 284.3 kB / 480.6 MB, free: 7.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.411, allocations: 46.7 kB / 480.6 MB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005522/0.4166, allocations: 3.777 MB / 484.4 MB, free: 3.344 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.4169, allocations: 0.8037 MB / 485.2 MB, free: 2.512 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001898/0.4171, allocations: 34.97 kB / 485.3 MB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.4173, allocations: 119.4 kB / 485.4 MB, free: 2.359 MB / 362.7 MB Notification: Performance of SimCode: time 8.62e-07/0.4173, allocations: 0 / 485.4 MB, free: 2.359 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.4401, allocations: 8.312 MB / 493.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002212/0.4404, allocations: 222 kB / 493.9 MB, free: 9.816 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/2.594, allocations: 0 / 493.9 MB, free: 9.816 MB / 378.7 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/linux/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