Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.006141/0.006141, allocations: 166.4 kB / 15.11 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.375/1.375, allocations: 170.8 MB / 186.6 MB, free: 1.125 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00179/0.00179, allocations: 114.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003673, allocations: 11.98 kB / 274.1 MB, free: 10.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2389, allocations: 38.76 MB / 312.9 MB, free: 38.74 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.3576, allocations: 94.21 MB / 407.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.3578, allocations: 79.95 kB / 407.2 MB, free: 12.19 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7849/1.143, allocations: 196.5 MB / 0.5896 GB, free: 44.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.747e-06/1.143, allocations: 0 / 0.5896 GB, free: 44.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002415/1.143, allocations: 89.75 kB / 0.5896 GB, free: 44.11 MB / 346.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.0159/1.159, allocations: 6.066 MB / 0.5956 GB, free: 40.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/1.159, allocations: 7.312 kB / 0.5956 GB, free: 40.72 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002044/1.161, allocations: 0.7513 MB / 0.5963 GB, free: 40.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/1.173, allocations: 4.552 MB / 0.6008 GB, free: 39.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.265e-05/1.173, allocations: 71.78 kB / 0.6008 GB, free: 39.28 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003058/1.173, allocations: 103 kB / 0.6009 GB, free: 39.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/1.176, allocations: 1.529 MB / 0.6024 GB, free: 39.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/1.176, allocations: 0.9375 kB / 0.6024 GB, free: 39.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/1.176, allocations: 44.05 kB / 0.6025 GB, free: 39.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.52e-05/1.176, allocations: 40.33 kB / 0.6025 GB, free: 39.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00248/1.178, allocations: 1.523 MB / 0.604 GB, free: 39.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01248/1.191, allocations: 5.868 MB / 0.6097 GB, free: 36.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/1.193, allocations: 1.036 MB / 0.6107 GB, free: 36.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3109/1.504, allocations: 71.57 MB / 0.6806 GB, free: 77.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009845/1.505, allocations: 0.5814 MB / 0.6812 GB, free: 77.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.655e-06/1.505, allocations: 0 / 0.6812 GB, free: 77.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.00387/1.508, allocations: 2.581 MB / 0.6837 GB, free: 76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/1.509, allocations: 482.7 kB / 0.6842 GB, free: 75.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007109/1.516, allocations: 4.868 MB / 0.6889 GB, free: 75.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003364/1.516, allocations: 43.27 kB / 0.689 GB, free: 74.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002969/1.519, allocations: 2.931 MB / 0.6918 GB, free: 74.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006081/1.52, allocations: 308.8 kB / 0.6921 GB, free: 74.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.363e-05/1.52, allocations: 24.41 kB / 0.6921 GB, free: 74.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/1.52, allocations: 367.3 kB / 0.6925 GB, free: 74.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009349/1.521, allocations: 420 kB / 0.6929 GB, free: 74.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/1.522, allocations: 1.199 MB / 0.6941 GB, free: 73.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/1.523, allocations: 0.5824 MB / 0.6946 GB, free: 73.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.659e-05/1.524, allocations: 11.05 kB / 0.6946 GB, free: 73.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00503/1.529, allocations: 2.25 MB / 0.6968 GB, free: 72.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/1.529, allocations: 15.44 kB / 0.6969 GB, free: 72.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002783/1.529, allocations: 163.5 kB / 0.697 GB, free: 72.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.695e-05/1.529, allocations: 36 kB / 0.697 GB, free: 72.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/1.53, allocations: 364.7 kB / 0.6974 GB, free: 72.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.501e-05/1.53, allocations: 51.84 kB / 0.6974 GB, free: 72.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/1.533, allocations: 201.9 kB / 0.6976 GB, free: 72.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003216/1.534, allocations: 122.5 kB / 0.6978 GB, free: 72.73 MB / 378.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.002878/1.537, allocations: 0.7229 MB / 0.6985 GB, free: 72.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001845/1.538, allocations: 0.732 MB / 0.6992 GB, free: 72.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006793/1.545, allocations: 2.289 MB / 0.7014 GB, free: 72.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/1.545, allocations: 5.562 kB / 0.7014 GB, free: 72.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/1.545, allocations: 3.797 kB / 0.7014 GB, free: 72.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/1.545, allocations: 7.578 kB / 0.7014 GB, free: 72.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/1.558, allocations: 3.873 MB / 0.7052 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002236/1.559, allocations: 149.3 kB / 0.7054 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008009/1.559, allocations: 161.7 kB / 0.7055 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.255e-05/1.56, allocations: 2.469 kB / 0.7055 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/1.56, allocations: 59.28 kB / 0.7056 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/1.56, allocations: 10 kB / 0.7056 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.56, allocations: 2.344 kB / 0.7056 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004583/1.564, allocations: 2.321 MB / 0.7078 GB, free: 70.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003115/1.567, allocations: 0.9345 MB / 0.7088 GB, free: 70.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001948/1.569, allocations: 19.56 kB / 0.7088 GB, free: 70.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002537/1.572, allocations: 49.94 kB / 0.7088 GB, free: 70.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/1.572, allocations: 103.5 kB / 0.7089 GB, free: 70.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/1.572, allocations: 72.52 kB / 0.709 GB, free: 70.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0077/1.58, allocations: 3.713 MB / 0.7126 GB, free: 70.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.58, allocations: 0 / 0.7126 GB, free: 70.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005085/1.585, allocations: 1.175 MB / 0.7138 GB, free: 70.13 MB / 378.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.002355/1.588, allocations: 1.231 MB / 0.715 GB, free: 70.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002782/1.59, allocations: 1.471 MB / 0.7164 GB, free: 69.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.59, allocations: 0 / 0.7164 GB, free: 69.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/1.592, allocations: 0.7921 MB / 0.7172 GB, free: 69.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00462/1.596, allocations: 0.959 MB / 0.7181 GB, free: 69.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01611/1.612, allocations: 9.253 MB / 0.7271 GB, free: 65.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/1.614, allocations: 2.724 MB / 0.7298 GB, free: 64.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002572/1.617, allocations: 0.7276 MB / 0.7305 GB, free: 64.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003976/1.617, allocations: 311 kB / 0.7308 GB, free: 64.23 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/1.617, allocations: 0 / 0.7308 GB, free: 64.23 MB / 378.7 MB Notification: Performance of Templates: time 0.09053/1.708, allocations: 54.59 MB / 0.7841 GB, free: 26.77 MB / 378.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)