Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00178/0.00178, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009958/0.0009959, allocations: 91.25 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.561e-05, allocations: 0 / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1089, allocations: 51.49 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.364/0.473, allocations: 104.7 MB / 0.4949 GB, free: 1.059 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.4733, allocations: 75.17 kB / 0.495 GB, free: 1.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4781/0.9514, allocations: 99.52 MB / 0.5922 GB, free: 86.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.9515, allocations: 3.344 kB / 0.5922 GB, free: 86.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.511e-05/0.9515, allocations: 19.81 kB / 0.5922 GB, free: 86.82 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003708/0.9553, allocations: 1.614 MB / 0.5938 GB, free: 85.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.9553, allocations: 10.12 kB / 0.5938 GB, free: 85.95 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001931/0.9555, allocations: 71.02 kB / 0.5938 GB, free: 85.91 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004652/0.956, allocations: 199.8 kB / 0.594 GB, free: 85.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002515/0.9585, allocations: 1.204 MB / 0.5952 GB, free: 85.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.9586, allocations: 20.56 kB / 0.5952 GB, free: 85.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.589e-05/0.9587, allocations: 28.98 kB / 0.5952 GB, free: 85.39 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006872/0.9594, allocations: 444.2 kB / 0.5957 GB, free: 85.31 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.9594, allocations: 3.312 kB / 0.5957 GB, free: 85.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.592e-05/0.9595, allocations: 9.75 kB / 0.5957 GB, free: 85.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.9595, allocations: 18.48 kB / 0.5957 GB, free: 85.31 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005638/0.96, allocations: 368.5 kB / 0.596 GB, free: 85.31 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004284/0.9643, allocations: 1.657 MB / 0.5977 GB, free: 84.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.9649, allocations: 276 kB / 0.5979 GB, free: 84.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005467/0.9654, allocations: 367.6 kB / 0.5983 GB, free: 84.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02033/0.9858, allocations: 18.47 MB / 0.6163 GB, free: 71.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005301/0.9863, allocations: 211 kB / 0.6165 GB, free: 71.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 3.236e-06/0.9864, allocations: 0 / 0.6165 GB, free: 71.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=29): time 0.001289/0.9877, allocations: 489.7 kB / 0.617 GB, free: 70.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.9878, allocations: 170.9 kB / 0.6171 GB, free: 70.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002696/0.9905, allocations: 1.201 MB / 0.6183 GB, free: 70.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.29e-05/0.9905, allocations: 35.81 kB / 0.6184 GB, free: 70.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006528/0.9912, allocations: 0.7177 MB / 0.6191 GB, free: 70.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.9913, allocations: 95.06 kB / 0.6191 GB, free: 70.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.9914, allocations: 9.5 kB / 0.6192 GB, free: 70.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.854e-05/0.9914, allocations: 328.8 kB / 0.6195 GB, free: 70.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.9917, allocations: 105.2 kB / 0.6196 GB, free: 70.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.992, allocations: 337.6 kB / 0.6199 GB, free: 69.74 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.9923, allocations: 152.8 kB / 0.62 GB, free: 69.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.9923, allocations: 1.312 kB / 0.62 GB, free: 69.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001333/0.9937, allocations: 0.6482 MB / 0.6207 GB, free: 69.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.9937, allocations: 12.31 kB / 0.6207 GB, free: 69.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-05/0.9938, allocations: 41.09 kB / 0.6207 GB, free: 69.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003904/0.9942, allocations: 131.2 kB / 0.6208 GB, free: 69.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004659/0.9946, allocations: 123 kB / 0.621 GB, free: 69.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005551/0.9952, allocations: 0.681 MB / 0.6216 GB, free: 69.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008211/0.996, allocations: 81.8 kB / 0.6217 GB, free: 69.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/0.9961, allocations: 37.53 kB / 0.6217 GB, free: 69.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.9963, allocations: 139.8 kB / 0.6219 GB, free: 68.93 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002833/0.9966, allocations: 183.2 kB / 0.622 GB, free: 68.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.9984, allocations: 0.6744 MB / 0.6227 GB, free: 68.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.9984, allocations: 7.094 kB / 0.6227 GB, free: 68.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.9985, allocations: 2.625 kB / 0.6227 GB, free: 68.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.9985, allocations: 4.672 kB / 0.6227 GB, free: 68.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/1.001, allocations: 1.232 MB / 0.6239 GB, free: 68.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.942e-05/1.001, allocations: 36.53 kB / 0.624 GB, free: 68.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/1.001, allocations: 58.36 kB / 0.624 GB, free: 68.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002614/1.001, allocations: 127 kB / 0.6241 GB, free: 68.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/1.002, allocations: 19.2 kB / 0.6242 GB, free: 68.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005365/1.002, allocations: 0.67 MB / 0.6248 GB, free: 67.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.002, allocations: 2.094 kB / 0.6248 GB, free: 67.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/1.003, allocations: 0.646 MB / 0.6254 GB, free: 67.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000681/1.004, allocations: 282.4 kB / 0.6257 GB, free: 67.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003546/1.004, allocations: 11.17 kB / 0.6257 GB, free: 67.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006652/1.005, allocations: 41.81 kB / 0.6258 GB, free: 67.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/1.005, allocations: 51.34 kB / 0.6258 GB, free: 67.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-05/1.005, allocations: 17.06 kB / 0.6258 GB, free: 67.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001839/1.007, allocations: 0.9253 MB / 0.6267 GB, free: 67.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.007, allocations: 1.594 kB / 0.6267 GB, free: 67.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001755/1.009, allocations: 369.2 kB / 0.6271 GB, free: 67.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002557/1.011, allocations: 1.85 MB / 0.6289 GB, free: 66.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009825/1.012, allocations: 422.4 kB / 0.6293 GB, free: 66.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/1.012, allocations: 0 / 0.6293 GB, free: 66.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004405/1.013, allocations: 240.6 kB / 0.6295 GB, free: 65.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/1.014, allocations: 295.3 kB / 0.6298 GB, free: 65.91 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004164/1.018, allocations: 1.779 MB / 0.6315 GB, free: 65.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006574/1.019, allocations: 1.184 MB / 0.6327 GB, free: 64.58 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007632/1.02, allocations: 179.2 kB / 0.6329 GB, free: 64.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006167/1.02, allocations: 0.551 MB / 0.6334 GB, free: 64.53 MB / 442.7 MB Notification: Performance of SimCode: time 7.62e-07/1.02, allocations: 2.438 kB / 0.6334 GB, free: 64.53 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05704/1.077, allocations: 33.49 MB / 0.6661 GB, free: 60.36 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/1.078, allocations: 173.2 kB / 0.6663 GB, free: 60.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.29/4.368, allocations: 3.938 kB / 0.6663 GB, free: 60.14 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat