Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",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.001583/0.001588, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.941/1.941, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001181/0.00118, allocations: 96.41 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004016/0.0004018, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3335, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2224/0.556, allocations: 102.4 MB / 477.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.5563, allocations: 79.95 kB / 477.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.21/1.767, allocations: 193.6 MB / 0.655 GB, free: 53.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.747e-06/1.767, allocations: 0 / 0.655 GB, free: 53.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00051/1.767, allocations: 85.22 kB / 0.6551 GB, free: 53.37 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01621/1.784, allocations: 6.068 MB / 0.661 GB, free: 50.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.289e-05/1.784, allocations: 9.156 kB / 0.661 GB, free: 50.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006751/1.784, allocations: 164.6 kB / 0.6612 GB, free: 50.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/1.786, allocations: 0.7522 MB / 0.6619 GB, free: 49.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01375/1.8, allocations: 4.567 MB / 0.6664 GB, free: 48.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/1.8, allocations: 62.69 kB / 0.6665 GB, free: 48.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006563/1.801, allocations: 107.5 kB / 0.6666 GB, free: 48.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004414/1.805, allocations: 1.536 MB / 0.6681 GB, free: 48.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.408e-05/1.805, allocations: 3.062 kB / 0.6681 GB, free: 48.58 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002082/1.805, allocations: 37.28 kB / 0.6681 GB, free: 48.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.811e-05/1.805, allocations: 39.69 kB / 0.6681 GB, free: 48.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004636/1.81, allocations: 1.526 MB / 0.6696 GB, free: 48.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01971/1.83, allocations: 5.858 MB / 0.6753 GB, free: 47.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003445/1.833, allocations: 1.035 MB / 0.6764 GB, free: 47.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09719/1.931, allocations: 71.58 MB / 0.7463 GB, free: 27.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0017/1.932, allocations: 0.5884 MB / 0.7468 GB, free: 27.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 5.39e-06/1.932, allocations: 0 / 0.7468 GB, free: 27.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.006534/1.939, allocations: 2.578 MB / 0.7494 GB, free: 25.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002683/1.939, allocations: 481.4 kB / 0.7498 GB, free: 25.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01145/1.951, allocations: 4.865 MB / 0.7546 GB, free: 24.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002905/1.951, allocations: 45.34 kB / 0.7546 GB, free: 24.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003008/1.954, allocations: 2.376 MB / 0.7569 GB, free: 24.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005497/1.955, allocations: 297.4 kB / 0.7572 GB, free: 24.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001752/1.955, allocations: 28.12 kB / 0.7572 GB, free: 24.26 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/1.955, allocations: 375 kB / 0.7576 GB, free: 23.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001508/1.957, allocations: 417 kB / 0.758 GB, free: 23.94 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002003/1.959, allocations: 1.206 MB / 0.7592 GB, free: 22.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001944/1.961, allocations: 0.5829 MB / 0.7597 GB, free: 22.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.755e-05/1.961, allocations: 6.562 kB / 0.7597 GB, free: 22.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004998/1.966, allocations: 1.643 MB / 0.7613 GB, free: 22.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.047e-05/1.966, allocations: 14.34 kB / 0.7614 GB, free: 22.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003111/1.966, allocations: 164.9 kB / 0.7615 GB, free: 22.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.606e-05/1.966, allocations: 40.53 kB / 0.7616 GB, free: 22.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002315/1.968, allocations: 372.3 kB / 0.7619 GB, free: 22.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.158e-05/1.969, allocations: 44.98 kB / 0.762 GB, free: 22.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004079/1.973, allocations: 207.8 kB / 0.7622 GB, free: 22.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004567/1.973, allocations: 127.4 kB / 0.7623 GB, free: 22.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.002917/1.976, allocations: 0.7262 MB / 0.763 GB, free: 21.63 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/1.978, allocations: 0.7198 MB / 0.7637 GB, free: 21.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/1.988, allocations: 2.281 MB / 0.7659 GB, free: 20.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/1.988, allocations: 10.31 kB / 0.7659 GB, free: 20.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/1.988, allocations: 0 / 0.7659 GB, free: 20.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/1.988, allocations: 4.781 kB / 0.7659 GB, free: 20.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/2, allocations: 3.877 MB / 0.7697 GB, free: 18.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002706/2, allocations: 139.2 kB / 0.7698 GB, free: 18.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001508/2.002, allocations: 165.3 kB / 0.77 GB, free: 17.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.307e-05/2.002, allocations: 0 / 0.77 GB, free: 17.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002947/2.002, allocations: 63.94 kB / 0.7701 GB, free: 17.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/2.002, allocations: 4 kB / 0.7701 GB, free: 17.83 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/2.002, allocations: 6.016 kB / 0.7701 GB, free: 17.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00623/2.008, allocations: 2.325 MB / 0.7723 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002817/2.011, allocations: 0.9289 MB / 0.7733 GB, free: 14.72 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001563/2.013, allocations: 23.95 kB / 0.7733 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003051/2.016, allocations: 49.47 kB / 0.7733 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004612/2.016, allocations: 99.47 kB / 0.7734 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/2.017, allocations: 67.75 kB / 0.7735 GB, free: 14.53 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008758/2.025, allocations: 3.719 MB / 0.7771 GB, free: 11.49 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.025, allocations: 0 / 0.7771 GB, free: 11.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004239/2.03, allocations: 1.17 MB / 0.7783 GB, free: 10.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01005/2.04, allocations: 4.094 MB / 0.7823 GB, free: 6.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004722/2.045, allocations: 1.471 MB / 0.7837 GB, free: 5.418 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.679e-06/2.045, allocations: 0 / 0.7837 GB, free: 5.418 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002171/2.047, allocations: 0.7888 MB / 0.7845 GB, free: 4.645 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006109/2.053, allocations: 0.9672 MB / 0.7854 GB, free: 3.828 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4452/2.498, allocations: 59.95 MB / 0.844 GB, free: 64.74 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00471/2.503, allocations: 2.726 MB / 0.8466 GB, free: 63.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00442/2.507, allocations: 2.44 MB / 0.849 GB, free: 63.95 MB / 458.7 MB Notification: Performance of SimCode: time 1.673e-06/2.508, allocations: 0 / 0.849 GB, free: 63.95 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.217/6.724, allocations: 93.29 MB / 0.9401 GB, free: 19.05 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat