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.001308/0.001308, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009591/0.000959, allocations: 98.36 kB / 297.2 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002606, allocations: 4 kB / 358 MB, free: 9.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2628, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.3932, allocations: 104.7 MB / 0.5022 GB, free: 1.812 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003519/0.3936, allocations: 71.97 kB / 0.5022 GB, free: 1.742 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3725/0.7661, allocations: 99.6 MB / 0.5995 GB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.7662, allocations: 0 / 0.5995 GB, free: 10.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.689e-05/0.7662, allocations: 28 kB / 0.5995 GB, free: 10.86 MB / 378.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.003382/0.7696, allocations: 1.957 MB / 0.6014 GB, free: 8.848 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.7697, allocations: 8.031 kB / 0.6014 GB, free: 8.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.344e-05/0.7698, allocations: 74.47 kB / 0.6015 GB, free: 8.758 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.7699, allocations: 194 kB / 0.6017 GB, free: 8.566 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.7714, allocations: 1.223 MB / 0.6029 GB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.7714, allocations: 20.56 kB / 0.6029 GB, free: 7.254 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.463e-05/0.7715, allocations: 27.94 kB / 0.6029 GB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008112/0.7723, allocations: 0.5065 MB / 0.6034 GB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.7723, allocations: 0 / 0.6034 GB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.234e-05/0.7724, allocations: 12 kB / 0.6034 GB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.7724, allocations: 12 kB / 0.6035 GB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009032/0.7733, allocations: 0.5059 MB / 0.604 GB, free: 6.176 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.7756, allocations: 1.662 MB / 0.6056 GB, free: 4.438 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007932/0.7764, allocations: 419.3 kB / 0.606 GB, free: 4.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01795/0.7944, allocations: 18.36 MB / 0.6239 GB, free: 14.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006352/0.795, allocations: 283 kB / 0.6242 GB, free: 14.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 3.597e-06/0.7951, allocations: 0 / 0.6242 GB, free: 14.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.002112/0.7972, allocations: 0.8915 MB / 0.625 GB, free: 13.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.356e-05/0.7973, allocations: 170.2 kB / 0.6252 GB, free: 13.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.7988, allocations: 1.215 MB / 0.6264 GB, free: 12.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.7989, allocations: 33.7 kB / 0.6264 GB, free: 12.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005934/0.7995, allocations: 0.7226 MB / 0.6271 GB, free: 11.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.402e-05/0.7996, allocations: 90.8 kB / 0.6272 GB, free: 11.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.7996, allocations: 11.98 kB / 0.6272 GB, free: 11.46 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.7998, allocations: 322 kB / 0.6275 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004745/0.8002, allocations: 177 kB / 0.6277 GB, free: 10.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005939/0.8008, allocations: 408.4 kB / 0.6281 GB, free: 10.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/0.8013, allocations: 219.5 kB / 0.6283 GB, free: 10.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.8013, allocations: 4 kB / 0.6283 GB, free: 10.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001468/0.8028, allocations: 0.7826 MB / 0.6291 GB, free: 9.461 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.8029, allocations: 8 kB / 0.6291 GB, free: 9.453 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.922e-05/0.8029, allocations: 47.92 kB / 0.6291 GB, free: 9.406 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002954/0.8032, allocations: 133.6 kB / 0.6293 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/0.8037, allocations: 115.8 kB / 0.6294 GB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006186/0.8043, allocations: 0.6811 MB / 0.63 GB, free: 8.453 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00065/0.805, allocations: 87.42 kB / 0.6301 GB, free: 8.367 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.679e-05/0.805, allocations: 32 kB / 0.6301 GB, free: 8.336 MB / 410.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 () * Number of clocked 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.0004943/0.8055, allocations: 290.2 kB / 0.6304 GB, free: 8.043 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.8057, allocations: 189.7 kB / 0.6306 GB, free: 7.855 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.8076, allocations: 0.794 MB / 0.6314 GB, free: 7.055 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.8077, allocations: 4 kB / 0.6314 GB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8077, allocations: 0 / 0.6314 GB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.8077, allocations: 0 / 0.6314 GB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002268/0.8099, allocations: 1.374 MB / 0.6327 GB, free: 5.605 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.726e-05/0.81, allocations: 39.98 kB / 0.6328 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.8103, allocations: 51.95 kB / 0.6328 GB, free: 5.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000235/0.8105, allocations: 124.9 kB / 0.6329 GB, free: 5.391 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.8106, allocations: 23.92 kB / 0.633 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005596/0.8111, allocations: 0.6695 MB / 0.6336 GB, free: 4.672 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.8111, allocations: 0 / 0.6336 GB, free: 4.672 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.8124, allocations: 0.7894 MB / 0.6344 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004975/0.8129, allocations: 282.9 kB / 0.6346 GB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/0.8131, allocations: 12 kB / 0.6347 GB, free: 3.527 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004439/0.8135, allocations: 43.95 kB / 0.6347 GB, free: 3.484 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.8136, allocations: 39.95 kB / 0.6347 GB, free: 3.445 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.205e-05/0.8137, allocations: 23.98 kB / 0.6348 GB, free: 3.422 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001183/0.8149, allocations: 0.9415 MB / 0.6357 GB, free: 2.461 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8149, allocations: 0 / 0.6357 GB, free: 2.461 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009754/0.8159, allocations: 367.6 kB / 0.636 GB, free: 2.102 MB / 410.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) * Number of clocked states: 0 () * 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.00242/0.8183, allocations: 1.986 MB / 0.638 GB, free: 72 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.8195, allocations: 0.5424 MB / 0.6385 GB, free: 15.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8195, allocations: 0 / 0.6385 GB, free: 15.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006254/0.8202, allocations: 319.3 kB / 0.6388 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.8212, allocations: 291.2 kB / 0.6391 GB, free: 14.91 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.8367, allocations: 12.32 MB / 0.6511 GB, free: 1.898 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006631/0.8374, allocations: 1.187 MB / 0.6523 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006406/0.838, allocations: 174.5 kB / 0.6524 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005469/0.8386, allocations: 0.554 MB / 0.653 GB, free: 15.95 MB / 442.7 MB Notification: Performance of SimCode: time 7.61e-07/0.8386, allocations: 0 / 0.653 GB, free: 15.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2504/1.089, allocations: 33.08 MB / 0.6853 GB, free: 103.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/1.089, allocations: 208.7 kB / 0.6855 GB, free: 103.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.037/4.126, allocations: 0 / 0.6855 GB, free: 103.7 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