Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.001017/0.001017, allocations: 181.4 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.293/1.293, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008879/0.0008878, allocations: 86.66 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002462, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2207, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1057/0.3264, allocations: 102.3 MB / 478.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001774/0.3266, allocations: 71.97 kB / 478.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3713/0.698, allocations: 127.5 MB / 0.5916 GB, free: 22.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.698, allocations: 4 kB / 0.5916 GB, free: 22.94 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.275e-05/0.6981, allocations: 51.94 kB / 0.5916 GB, free: 22.89 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004786/0.7029, allocations: 3.571 MB / 0.5951 GB, free: 19.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.7029, allocations: 8.031 kB / 0.5951 GB, free: 19.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.7031, allocations: 102.5 kB / 0.5952 GB, free: 19.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003067/0.7034, allocations: 414.9 kB / 0.5956 GB, free: 18.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003052/0.7064, allocations: 2.46 MB / 0.598 GB, free: 16.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.7065, allocations: 48.94 kB / 0.5981 GB, free: 16.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-05/0.7066, allocations: 48 kB / 0.5981 GB, free: 16.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.7078, allocations: 0.8573 MB / 0.5989 GB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.7078, allocations: 4 kB / 0.5989 GB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.659e-05/0.7079, allocations: 27.98 kB / 0.599 GB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.7079, allocations: 16 kB / 0.599 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.7091, allocations: 0.8632 MB / 0.5998 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004377/0.7135, allocations: 3.282 MB / 0.603 GB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009611/0.7145, allocations: 0.6103 MB / 0.6036 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03335/0.7478, allocations: 36.06 MB / 0.6388 GB, free: 1.125 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007693/0.7487, allocations: 389.4 kB / 0.6392 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.356e-06/0.7487, allocations: 0 / 0.6392 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002561/0.7512, allocations: 1.493 MB / 0.6407 GB, free: 15.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.7514, allocations: 265 kB / 0.6409 GB, free: 14.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003578/0.755, allocations: 2.706 MB / 0.6436 GB, free: 12.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.032e-05/0.7551, allocations: 41.69 kB / 0.6436 GB, free: 12.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.7565, allocations: 1.584 MB / 0.6452 GB, free: 10.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.7566, allocations: 169.6 kB / 0.6453 GB, free: 10.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.7567, allocations: 16 kB / 0.6453 GB, free: 10.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.7568, allocations: 337.9 kB / 0.6457 GB, free: 9.973 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000614/0.7574, allocations: 257.9 kB / 0.6459 GB, free: 9.719 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008132/0.7583, allocations: 0.6712 MB / 0.6466 GB, free: 8.848 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006639/0.7589, allocations: 348.5 kB / 0.6469 GB, free: 8.508 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.759, allocations: 8 kB / 0.6469 GB, free: 8.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002213/0.7612, allocations: 1.28 MB / 0.6481 GB, free: 7.207 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.7612, allocations: 15.59 kB / 0.6482 GB, free: 7.195 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/0.7613, allocations: 87.92 kB / 0.6482 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.228e-05/0.7614, allocations: 20 kB / 0.6483 GB, free: 7.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007165/0.7621, allocations: 207.9 kB / 0.6485 GB, free: 6.887 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.674e-05/0.7621, allocations: 31.81 kB / 0.6485 GB, free: 6.855 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/0.7633, allocations: 123 kB / 0.6486 GB, free: 6.734 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.845e-05/0.7634, allocations: 64 kB / 0.6487 GB, free: 6.672 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001048/0.7645, allocations: 460 kB / 0.6491 GB, free: 6.215 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004206/0.7649, allocations: 399.1 kB / 0.6495 GB, free: 5.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003175/0.7681, allocations: 1.309 MB / 0.6508 GB, free: 4.504 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.7681, allocations: 4 kB / 0.6508 GB, free: 4.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.7681, allocations: 0 / 0.6508 GB, free: 4.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.7681, allocations: 11.94 kB / 0.6508 GB, free: 4.488 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003941/0.7721, allocations: 2.33 MB / 0.6531 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.378e-05/0.7722, allocations: 71.98 kB / 0.6531 GB, free: 2.016 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.7727, allocations: 103.9 kB / 0.6532 GB, free: 1.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.7727, allocations: 0 / 0.6532 GB, free: 1.914 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.296e-05/0.7727, allocations: 43.94 kB / 0.6533 GB, free: 1.871 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.7728, allocations: 0 / 0.6533 GB, free: 1.871 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.7728, allocations: 0 / 0.6533 GB, free: 1.871 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.775, allocations: 1.439 MB / 0.6547 GB, free: 400 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1797/0.9547, allocations: 0.5178 MB / 0.6552 GB, free: 97.33 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005772/0.9553, allocations: 15.12 kB / 0.6552 GB, free: 97.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007581/0.9561, allocations: 40.95 kB / 0.6552 GB, free: 97.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.9562, allocations: 63.23 kB / 0.6553 GB, free: 97.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-05/0.9563, allocations: 38.23 kB / 0.6553 GB, free: 97.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002436/0.9587, allocations: 2.068 MB / 0.6573 GB, free: 97.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9587, allocations: 1.406 kB / 0.6574 GB, free: 97.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0015/0.9603, allocations: 0.6638 MB / 0.658 GB, free: 97.15 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003618/0.9639, allocations: 2.877 MB / 0.6608 GB, free: 96.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.9653, allocations: 0.8488 MB / 0.6616 GB, free: 95.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.9653, allocations: 0 / 0.6616 GB, free: 95.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006287/0.966, allocations: 469.5 kB / 0.6621 GB, free: 95.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/0.9678, allocations: 0.5187 MB / 0.6626 GB, free: 95.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03079/0.9986, allocations: 27.92 MB / 0.6899 GB, free: 76.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.9997, allocations: 1.782 MB / 0.6916 GB, free: 75.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001315/1.001, allocations: 386.8 kB / 0.692 GB, free: 75.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/1.002, allocations: 1.259 MB / 0.6932 GB, free: 75.83 MB / 426.7 MB Notification: Performance of SimCode: time 7.01e-07/1.002, allocations: 0 / 0.6932 GB, free: 75.83 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08031/1.082, allocations: 62.55 MB / 0.7543 GB, free: 41.16 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/1.083, allocations: 193.6 kB / 0.7545 GB, free: 40.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.074/5.157, allocations: 0 / 0.7545 GB, free: 40.91 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat