Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_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.0009791/0.0009791, allocations: 172.5 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.507/1.507, 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.000831/0.0008313, allocations: 82.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.77e-05/2.774e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09733/0.09738, allocations: 47.58 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.465, allocations: 102.4 MB / 472.5 MB, free: 7.168 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.4653, allocations: 70.22 kB / 472.5 MB, free: 7.133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5969/1.062, allocations: 193.5 MB / 0.6505 GB, free: 29.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.062, allocations: 0 / 0.6505 GB, free: 29.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002286/1.062, allocations: 88 kB / 0.6505 GB, free: 29.27 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.007597/1.07, allocations: 4.687 MB / 0.6551 GB, free: 24.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/1.07, allocations: 12.03 kB / 0.6551 GB, free: 24.51 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000248/1.07, allocations: 157.2 kB / 0.6553 GB, free: 24.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/1.071, allocations: 0.7526 MB / 0.656 GB, free: 23.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007354/1.079, allocations: 4.516 MB / 0.6604 GB, free: 18.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/1.079, allocations: 70 kB / 0.6605 GB, free: 18.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/1.079, allocations: 95.91 kB / 0.6606 GB, free: 18.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/1.081, allocations: 1.457 MB / 0.662 GB, free: 17.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/1.081, allocations: 0 / 0.662 GB, free: 17.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/1.081, allocations: 36 kB / 0.662 GB, free: 17.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.344e-05/1.081, allocations: 39.98 kB / 0.6621 GB, free: 17.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/1.083, allocations: 1.356 MB / 0.6634 GB, free: 15.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009555/1.092, allocations: 5.872 MB / 0.6691 GB, free: 9.891 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/1.093, allocations: 0.8845 MB / 0.67 GB, free: 8.988 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001097/1.095, allocations: 1.164 MB / 0.6711 GB, free: 7.824 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3246/1.419, allocations: 71.88 MB / 0.7413 GB, free: 33.69 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007928/1.42, allocations: 0.5148 MB / 0.7418 GB, free: 33.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 3.858e-06/1.42, allocations: 0 / 0.7418 GB, free: 33.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.00272/1.423, allocations: 1.46 MB / 0.7433 GB, free: 33.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/1.423, allocations: 482.1 kB / 0.7437 GB, free: 32.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01031/1.433, allocations: 4.791 MB / 0.7484 GB, free: 32.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003045/1.434, allocations: 38.98 kB / 0.7484 GB, free: 32.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002622/1.436, allocations: 2.948 MB / 0.7513 GB, free: 31.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004364/1.437, allocations: 305.5 kB / 0.7516 GB, free: 31.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.143e-05/1.437, allocations: 29.25 kB / 0.7516 GB, free: 31.67 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.16e-05/1.437, allocations: 363.9 kB / 0.752 GB, free: 31.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005311/1.437, allocations: 343.1 kB / 0.7523 GB, free: 31.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009355/1.438, allocations: 1.123 MB / 0.7534 GB, free: 30.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008296/1.439, allocations: 0.5193 MB / 0.7539 GB, free: 30.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/1.439, allocations: 5.969 kB / 0.7539 GB, free: 30.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003283/1.443, allocations: 2.097 MB / 0.756 GB, free: 29.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/1.443, allocations: 21.2 kB / 0.756 GB, free: 29.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002113/1.443, allocations: 164.6 kB / 0.7561 GB, free: 29.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.886e-05/1.443, allocations: 36.5 kB / 0.7562 GB, free: 29.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/1.444, allocations: 367.9 kB / 0.7565 GB, free: 29.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.211e-05/1.444, allocations: 51.81 kB / 0.7566 GB, free: 29.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002593/1.447, allocations: 204.3 kB / 0.7568 GB, free: 29.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001748/1.447, allocations: 122.6 kB / 0.7569 GB, free: 29.91 MB / 426.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.000275/1.447, allocations: 212.3 kB / 0.7571 GB, free: 29.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000753/1.448, allocations: 0.7262 MB / 0.7578 GB, free: 29.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005204/1.453, allocations: 2.144 MB / 0.7599 GB, free: 29.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/1.453, allocations: 10.19 kB / 0.7599 GB, free: 29.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/1.453, allocations: 0 / 0.7599 GB, free: 29.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/1.453, allocations: 3.438 kB / 0.7599 GB, free: 29.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005889/1.459, allocations: 3.738 MB / 0.7636 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001515/1.459, allocations: 136.8 kB / 0.7637 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007515/1.46, allocations: 164.9 kB / 0.7638 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/1.46, allocations: 4.719 kB / 0.7638 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.292e-05/1.46, allocations: 64.38 kB / 0.7639 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/1.46, allocations: 3.969 kB / 0.7639 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.46, allocations: 1.531 kB / 0.7639 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002912/1.463, allocations: 2.101 MB / 0.766 GB, free: 28.12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/1.465, allocations: 0.9352 MB / 0.7669 GB, free: 27.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005925/1.466, allocations: 22.16 kB / 0.7669 GB, free: 27.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/1.467, allocations: 48.84 kB / 0.7669 GB, free: 27.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/1.467, allocations: 98.95 kB / 0.767 GB, free: 27.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/1.467, allocations: 71.81 kB / 0.7671 GB, free: 27.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005272/1.472, allocations: 3.64 MB / 0.7707 GB, free: 27.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.472, allocations: 0 / 0.7707 GB, free: 27.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003133/1.475, allocations: 1.181 MB / 0.7718 GB, free: 27.29 MB / 426.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.004306/1.48, allocations: 3.876 MB / 0.7756 GB, free: 26.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001771/1.482, allocations: 1.324 MB / 0.7769 GB, free: 25.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/1.482, allocations: 3.531 kB / 0.7769 GB, free: 25.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007284/1.482, allocations: 0.7186 MB / 0.7776 GB, free: 25.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003509/1.486, allocations: 0.9604 MB / 0.7785 GB, free: 25.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/1.501, allocations: 6.976 MB / 0.7854 GB, free: 23.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001687/1.503, allocations: 2.725 MB / 0.788 GB, free: 22.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002645/1.505, allocations: 0.7306 MB / 0.7887 GB, free: 22.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002065/1.507, allocations: 2.43 MB / 0.7911 GB, free: 22.62 MB / 426.7 MB Notification: Performance of SimCode: time 1.703e-06/1.507, allocations: 0 / 0.7911 GB, free: 22.62 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4389/1.946, allocations: 105 MB / 0.8937 GB, free: 91.35 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/1.947, allocations: 153.3 kB / 0.8938 GB, free: 91.13 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/9.521, allocations: 0 / 0.8938 GB, free: 91.13 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat