Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001091, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009243/0.0009242, allocations: 87.73 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.737e-05/1.739e-05, allocations: 0 / 337.1 MB, free: 9.965 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 50.43 MB / 387.6 MB, free: 7.504 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.368/0.4736, allocations: 103.7 MB / 491.2 MB, free: 7.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.4738, allocations: 69.62 kB / 491.3 MB, free: 7.023 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6573/1.131, allocations: 213 MB / 0.6878 GB, free: 16.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.453e-06/1.131, allocations: 0 / 0.6878 GB, free: 16.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001991/1.131, allocations: 88 kB / 0.6879 GB, free: 16 MB / 426.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.007575/1.139, allocations: 4.656 MB / 0.6925 GB, free: 11.28 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/1.139, allocations: 12.03 kB / 0.6925 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00121/1.14, allocations: 0.741 MB / 0.6932 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00726/1.147, allocations: 4.485 MB / 0.6976 GB, free: 5.945 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/1.148, allocations: 31.95 kB / 0.6976 GB, free: 5.914 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/1.148, allocations: 71.83 kB / 0.6977 GB, free: 5.844 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001689/1.149, allocations: 1.309 MB / 0.699 GB, free: 4.535 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/1.151, allocations: 1.313 MB / 0.7002 GB, free: 3.152 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/1.151, allocations: 3.938 kB / 0.7003 GB, free: 3.148 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/1.151, allocations: 4 kB / 0.7003 GB, free: 3.145 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.17e-05/1.151, allocations: 47.97 kB / 0.7003 GB, free: 3.098 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/1.162, allocations: 5.629 MB / 0.7058 GB, free: 13.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/1.163, allocations: 0.8507 MB / 0.7066 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/1.164, allocations: 1.131 MB / 0.7077 GB, free: 11.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3811/1.545, allocations: 71.64 MB / 0.7777 GB, free: 23.89 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000634/1.546, allocations: 498.5 kB / 0.7782 GB, free: 23.83 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 3.256e-06/1.546, allocations: 0 / 0.7782 GB, free: 23.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.002186/1.548, allocations: 1.422 MB / 0.7796 GB, free: 23.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/1.548, allocations: 480.6 kB / 0.78 GB, free: 22.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005848/1.554, allocations: 4.379 MB / 0.7843 GB, free: 22.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/1.554, allocations: 29.61 kB / 0.7843 GB, free: 22.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002462/1.556, allocations: 2.939 MB / 0.7872 GB, free: 22.06 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002679/1.557, allocations: 292.7 kB / 0.7875 GB, free: 21.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.896e-05/1.557, allocations: 3.906 kB / 0.7875 GB, free: 21.92 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.801e-05/1.557, allocations: 361.7 kB / 0.7878 GB, free: 21.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004326/1.557, allocations: 311.9 kB / 0.7881 GB, free: 21.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007477/1.558, allocations: 1.091 MB / 0.7892 GB, free: 20.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007351/1.559, allocations: 489 kB / 0.7896 GB, free: 20.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/1.559, allocations: 6.625 kB / 0.7897 GB, free: 20.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002825/1.562, allocations: 1.92 MB / 0.7915 GB, free: 20.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/1.562, allocations: 13.31 kB / 0.7915 GB, free: 20.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/1.562, allocations: 164 kB / 0.7917 GB, free: 20.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.513e-05/1.562, allocations: 34.88 kB / 0.7917 GB, free: 20.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/1.563, allocations: 372.8 kB / 0.7921 GB, free: 20.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.504e-05/1.563, allocations: 45.89 kB / 0.7921 GB, free: 20.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002344/1.566, allocations: 176 kB / 0.7923 GB, free: 20.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001721/1.566, allocations: 129.4 kB / 0.7924 GB, free: 20.16 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 () * 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.000252/1.566, allocations: 169.3 kB / 0.7926 GB, free: 20.06 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0018/1.568, allocations: 1.422 MB / 0.794 GB, free: 19.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005338/1.568, allocations: 0.7199 MB / 0.7947 GB, free: 19.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005273/1.574, allocations: 2.079 MB / 0.7967 GB, free: 19.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/1.574, allocations: 6.344 kB / 0.7967 GB, free: 19.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.574, allocations: 4.812 kB / 0.7967 GB, free: 19.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/1.574, allocations: 3.797 kB / 0.7967 GB, free: 19.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006102/1.58, allocations: 3.539 MB / 0.8002 GB, free: 18.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001676/1.58, allocations: 142.2 kB / 0.8003 GB, free: 18.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000759/1.581, allocations: 161.5 kB / 0.8005 GB, free: 18.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/1.581, allocations: 4.5 kB / 0.8005 GB, free: 18.72 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.324e-05/1.581, allocations: 50.31 kB / 0.8005 GB, free: 18.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/1.581, allocations: 3.938 kB / 0.8005 GB, free: 18.72 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/1.581, allocations: 7.906 kB / 0.8005 GB, free: 18.72 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/1.583, allocations: 2.041 MB / 0.8025 GB, free: 18.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001531/1.585, allocations: 0.9421 MB / 0.8034 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005681/1.585, allocations: 3.656 kB / 0.8034 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/1.586, allocations: 37.3 kB / 0.8035 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/1.587, allocations: 103.6 kB / 0.8036 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/1.587, allocations: 67.14 kB / 0.8036 GB, free: 17.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004503/1.591, allocations: 3.231 MB / 0.8068 GB, free: 17.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.591, allocations: 3.656 kB / 0.8068 GB, free: 17.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002845/1.594, allocations: 1.118 MB / 0.8079 GB, free: 17.23 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) * 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.004121/1.598, allocations: 3.871 MB / 0.8117 GB, free: 15.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002236/1.601, allocations: 1.248 MB / 0.8129 GB, free: 31.72 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.601, allocations: 0 / 0.8129 GB, free: 31.72 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007674/1.601, allocations: 0.7063 MB / 0.8136 GB, free: 31.47 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006053/1.607, allocations: 1.141 MB / 0.8147 GB, free: 31.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/1.621, allocations: 6.866 MB / 0.8214 GB, free: 29.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001945/1.623, allocations: 2.706 MB / 0.824 GB, free: 28.65 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002962/1.626, allocations: 0.7328 MB / 0.8248 GB, free: 28.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002156/1.628, allocations: 2.417 MB / 0.8271 GB, free: 28.6 MB / 458.7 MB Notification: Performance of SimCode: time 8.11e-07/1.628, allocations: 0 / 0.8271 GB, free: 28.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5056/2.133, allocations: 98.87 MB / 0.9237 GB, free: 86.68 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/2.134, allocations: 136.5 kB / 0.9238 GB, free: 86.48 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.432/9.566, allocations: 5.094 kB / 0.9238 GB, free: 86.48 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat