Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001635/0.001635, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.413/1.413, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001594/0.001594, allocations: 110.7 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.038e-05/2.056e-05, allocations: 4 kB / 298.1 MB, free: 8.234 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08637/0.08641, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2694/0.3558, allocations: 97.27 MB / 439.8 MB, free: 14.78 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.3561, allocations: 66.66 kB / 439.9 MB, free: 14.75 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.578/0.9341, allocations: 186.7 MB / 0.6119 GB, free: 49.11 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.9341, allocations: 4 kB / 0.6119 GB, free: 49.1 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001619/0.9343, allocations: 85.25 kB / 0.612 GB, free: 49.1 MB / 395.1 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.01015/0.9445, allocations: 4.685 MB / 0.6165 GB, free: 44.81 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.9445, allocations: 12.03 kB / 0.6166 GB, free: 44.8 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001688/0.9462, allocations: 0.7487 MB / 0.6173 GB, free: 44.04 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008635/0.9549, allocations: 4.509 MB / 0.6217 GB, free: 39.62 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/0.955, allocations: 28 kB / 0.6217 GB, free: 39.59 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003907/0.9554, allocations: 67.81 kB / 0.6218 GB, free: 39.53 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002138/0.9575, allocations: 1.309 MB / 0.6231 GB, free: 38.21 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002001/0.9595, allocations: 1.328 MB / 0.6244 GB, free: 36.82 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.9596, allocations: 0 / 0.6244 GB, free: 36.82 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001412/0.9597, allocations: 3.984 kB / 0.6244 GB, free: 36.81 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.584e-05/0.9598, allocations: 35.98 kB / 0.6244 GB, free: 36.78 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/0.9718, allocations: 5.669 MB / 0.6299 GB, free: 31.09 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.973, allocations: 0.8504 MB / 0.6308 GB, free: 30.22 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.9742, allocations: 1.125 MB / 0.6319 GB, free: 29.1 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2985/1.273, allocations: 71.84 MB / 0.702 GB, free: 26.48 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000749/1.274, allocations: 0.4935 MB / 0.7025 GB, free: 26.42 MB / 395.1 MB Notification: Performance of pre-optimization done (n=85): time 2.985e-06/1.274, allocations: 0 / 0.7025 GB, free: 26.42 MB / 395.1 MB Notification: Performance of matching and sorting (n=85): time 0.002919/1.277, allocations: 1.425 MB / 0.7039 GB, free: 26.02 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/1.277, allocations: 481.1 kB / 0.7043 GB, free: 25.46 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008687/1.285, allocations: 4.405 MB / 0.7086 GB, free: 25.04 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002978/1.286, allocations: 35.14 kB / 0.7087 GB, free: 25.01 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002773/1.288, allocations: 2.932 MB / 0.7115 GB, free: 24.66 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005473/1.289, allocations: 288.5 kB / 0.7118 GB, free: 24.52 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.115e-05/1.289, allocations: 0 / 0.7118 GB, free: 24.52 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/1.289, allocations: 364.9 kB / 0.7122 GB, free: 24.21 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005481/1.29, allocations: 314.1 kB / 0.7125 GB, free: 24.21 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/1.291, allocations: 1.082 MB / 0.7135 GB, free: 23.22 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008175/1.292, allocations: 496.7 kB / 0.714 GB, free: 23.21 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.396e-05/1.292, allocations: 9.156 kB / 0.714 GB, free: 23.21 MB / 395.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004154/1.296, allocations: 1.924 MB / 0.7159 GB, free: 22.81 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/1.296, allocations: 15.53 kB / 0.7159 GB, free: 22.81 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000263/1.296, allocations: 161 kB / 0.7161 GB, free: 22.81 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.113e-05/1.297, allocations: 37.86 kB / 0.7161 GB, free: 22.81 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/1.298, allocations: 374.5 kB / 0.7164 GB, free: 22.81 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.205e-05/1.298, allocations: 45.59 kB / 0.7165 GB, free: 22.81 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002984/1.301, allocations: 176.5 kB / 0.7167 GB, free: 22.76 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002838/1.301, allocations: 124.2 kB / 0.7168 GB, free: 22.76 MB / 395.1 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.000341/1.302, allocations: 184.4 kB / 0.717 GB, free: 22.65 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/1.303, allocations: 0.728 MB / 0.7177 GB, free: 22.27 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006307/1.309, allocations: 2.083 MB / 0.7197 GB, free: 22.15 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/1.309, allocations: 7.781 kB / 0.7197 GB, free: 22.15 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/1.309, allocations: 1.922 kB / 0.7197 GB, free: 22.15 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/1.309, allocations: 4.266 kB / 0.7197 GB, free: 22.15 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007396/1.316, allocations: 3.557 MB / 0.7232 GB, free: 21.75 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001725/1.317, allocations: 137.1 kB / 0.7233 GB, free: 21.75 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008239/1.318, allocations: 167 kB / 0.7235 GB, free: 21.75 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/1.318, allocations: 4.234 kB / 0.7235 GB, free: 21.75 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.743e-05/1.318, allocations: 48.72 kB / 0.7235 GB, free: 21.75 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.271e-06/1.318, allocations: 4.906 kB / 0.7235 GB, free: 21.75 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.318, allocations: 2.75 kB / 0.7235 GB, free: 21.75 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/1.32, allocations: 2.055 MB / 0.7255 GB, free: 21.06 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001981/1.322, allocations: 0.9365 MB / 0.7265 GB, free: 20.53 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006837/1.323, allocations: 9.188 kB / 0.7265 GB, free: 20.53 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/1.324, allocations: 41.44 kB / 0.7265 GB, free: 20.53 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/1.324, allocations: 103.2 kB / 0.7266 GB, free: 20.53 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/1.325, allocations: 73.39 kB / 0.7267 GB, free: 20.53 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.005661/1.33, allocations: 3.247 MB / 0.7298 GB, free: 20.28 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.33, allocations: 5.094 kB / 0.7298 GB, free: 20.28 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003184/1.333, allocations: 1.123 MB / 0.7309 GB, free: 20.26 MB / 395.1 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.001809/1.335, allocations: 1.312 MB / 0.7322 GB, free: 20.15 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/1.337, allocations: 1.248 MB / 0.7334 GB, free: 19.89 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/1.337, allocations: 0 / 0.7334 GB, free: 19.89 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007066/1.338, allocations: 0.7029 MB / 0.7341 GB, free: 19.64 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/1.342, allocations: 0.949 MB / 0.7351 GB, free: 19.58 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/1.354, allocations: 6.008 MB / 0.7409 GB, free: 17.71 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002871/1.357, allocations: 2.722 MB / 0.7436 GB, free: 16.93 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.003588/1.361, allocations: 0.7335 MB / 0.7443 GB, free: 16.88 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008059/1.362, allocations: 309.4 kB / 0.7446 GB, free: 16.88 MB / 395.1 MB Notification: Performance of SimCode: time 1.473e-06/1.362, allocations: 0 / 0.7446 GB, free: 16.88 MB / 395.1 MB Notification: Performance of Templates: time 0.09051/1.452, allocations: 51.4 MB / 0.7948 GB, free: 12.85 MB / 427.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)