Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",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.001152/0.001152, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.489/1.489, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0009071/0.0009071, allocations: 86.62 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.793e-05/2.816e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09049/0.09054, allocations: 47.58 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3372/0.4278, allocations: 101.9 MB / 472 MB, free: 7.672 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.428, allocations: 70.59 kB / 472.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3985/0.8265, allocations: 89.48 MB / 0.5484 GB, free: 99.28 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.8266, allocations: 0 / 0.5484 GB, free: 99.28 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.824e-05/0.8266, allocations: 22.41 kB / 0.5484 GB, free: 99.28 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002916/0.8295, allocations: 1.619 MB / 0.55 GB, free: 98.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.8296, allocations: 10 kB / 0.55 GB, free: 98.37 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.741e-05/0.8297, allocations: 64.61 kB / 0.5501 GB, free: 98.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002523/0.8299, allocations: 193.8 kB / 0.5502 GB, free: 98.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/0.8318, allocations: 1.213 MB / 0.5514 GB, free: 97.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.8318, allocations: 30.14 kB / 0.5515 GB, free: 97.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.98e-05/0.8319, allocations: 36.84 kB / 0.5515 GB, free: 97.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007482/0.8327, allocations: 444.8 kB / 0.5519 GB, free: 97.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.8327, allocations: 0 / 0.5519 GB, free: 97.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.423e-05/0.8327, allocations: 11.66 kB / 0.5519 GB, free: 97.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.8328, allocations: 13.44 kB / 0.5519 GB, free: 97.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006609/0.8334, allocations: 374.9 kB / 0.5523 GB, free: 97.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003003/0.8364, allocations: 1.646 MB / 0.5539 GB, free: 97.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000408/0.8369, allocations: 280.8 kB / 0.5542 GB, free: 97.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004549/0.8373, allocations: 361.2 kB / 0.5545 GB, free: 97.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01572/0.8531, allocations: 18.19 MB / 0.5723 GB, free: 83.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.8535, allocations: 213.2 kB / 0.5725 GB, free: 83.87 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 2.024e-06/0.8535, allocations: 0 / 0.5725 GB, free: 83.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008155/0.8543, allocations: 493.1 kB / 0.573 GB, free: 83.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.8544, allocations: 173.3 kB / 0.5731 GB, free: 83.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.8558, allocations: 1.21 MB / 0.5743 GB, free: 83.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.8559, allocations: 33.7 kB / 0.5743 GB, free: 83.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004526/0.8563, allocations: 0.7257 MB / 0.575 GB, free: 82.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.62e-05/0.8564, allocations: 86.03 kB / 0.5751 GB, free: 82.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.537e-05/0.8564, allocations: 11.69 kB / 0.5751 GB, free: 82.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.747e-05/0.8565, allocations: 329.4 kB / 0.5754 GB, free: 82.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.8567, allocations: 111.5 kB / 0.5756 GB, free: 82.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002481/0.8569, allocations: 333 kB / 0.5759 GB, free: 81.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002292/0.8572, allocations: 154.5 kB / 0.576 GB, free: 81.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.8572, allocations: 3.281 kB / 0.576 GB, free: 81.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008275/0.858, allocations: 0.6532 MB / 0.5767 GB, free: 81.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.8581, allocations: 7.938 kB / 0.5767 GB, free: 81.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.832e-05/0.8581, allocations: 44.27 kB / 0.5767 GB, free: 81.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002737/0.8584, allocations: 138.7 kB / 0.5768 GB, free: 81.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/0.8588, allocations: 116.6 kB / 0.577 GB, free: 81.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004904/0.8593, allocations: 0.676 MB / 0.5776 GB, free: 80.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000749/0.8601, allocations: 80.42 kB / 0.5777 GB, free: 80.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.8601, allocations: 35.3 kB / 0.5777 GB, free: 80.93 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 () * 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.0001246/0.8602, allocations: 150.2 kB / 0.5779 GB, free: 80.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.8604, allocations: 185.2 kB / 0.578 GB, free: 80.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.8619, allocations: 0.675 MB / 0.5787 GB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.8619, allocations: 3.75 kB / 0.5787 GB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.8619, allocations: 4 kB / 0.5787 GB, free: 80.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.8619, allocations: 0 / 0.5787 GB, free: 80.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00189/0.8638, allocations: 1.249 MB / 0.5799 GB, free: 79.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-05/0.8639, allocations: 35.44 kB / 0.58 GB, free: 79.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.8641, allocations: 65.69 kB / 0.58 GB, free: 79.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00024/0.8644, allocations: 125.3 kB / 0.5801 GB, free: 79.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.8644, allocations: 15.88 kB / 0.5802 GB, free: 79.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004965/0.8649, allocations: 0.6729 MB / 0.5808 GB, free: 79.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.865, allocations: 0 / 0.5808 GB, free: 79.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007797/0.8658, allocations: 0.6473 MB / 0.5815 GB, free: 78.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004747/0.8662, allocations: 288.8 kB / 0.5817 GB, free: 78.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.8664, allocations: 11.86 kB / 0.5817 GB, free: 78.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004525/0.8669, allocations: 38.73 kB / 0.5818 GB, free: 78.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.867, allocations: 38.94 kB / 0.5818 GB, free: 78.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.867, allocations: 23.08 kB / 0.5818 GB, free: 78.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001105/0.8682, allocations: 0.9349 MB / 0.5827 GB, free: 78.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8682, allocations: 0 / 0.5827 GB, free: 78.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001014/0.8692, allocations: 359.7 kB / 0.5831 GB, free: 78.06 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) * 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.001648/0.8708, allocations: 1.852 MB / 0.5849 GB, free: 76.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007838/0.8716, allocations: 421.3 kB / 0.5853 GB, free: 76.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.8717, allocations: 3.844 kB / 0.5853 GB, free: 76.76 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000351/0.872, allocations: 241.9 kB / 0.5855 GB, free: 76.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008161/0.8728, allocations: 246.1 kB / 0.5858 GB, free: 76.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003092/0.8759, allocations: 1.797 MB / 0.5875 GB, free: 75.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.8764, allocations: 1.19 MB / 0.5887 GB, free: 75.04 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005771/0.877, allocations: 178.1 kB / 0.5889 GB, free: 75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004688/0.8775, allocations: 0.5508 MB / 0.5894 GB, free: 74.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.8775, allocations: 0 / 0.5894 GB, free: 74.56 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05236/0.9299, allocations: 33.62 MB / 0.6222 GB, free: 53.28 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/0.9301, allocations: 173.4 kB / 0.6224 GB, free: 53.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.984/3.914, allocations: 0 / 0.6224 GB, free: 53.05 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat