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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007706/0.0007708, allocations: 100.9 kB / 16.65 MB, free: 6.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009889/0.000989, allocations: 180.4 kB / 17.57 MB, free: 5.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.4 MB / 223.7 MB, free: 13.05 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007083/0.0007084, allocations: 8 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.133, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02662/0.1597, allocations: 24.3 MB / 352.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02604/0.1858, allocations: 21.2 MB / 373.8 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003701/0.1895, allocations: 63.62 kB / 373.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004469/0.194, allocations: 1.485 MB / 375.4 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01021/0.2042, allocations: 2.667 MB / 378 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005162/0.2094, allocations: 1.316 MB / 379.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1686/0.378, allocations: 12.13 MB / 391.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001609/0.3797, allocations: 0.8163 MB / 392.3 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00364/0.3833, allocations: 1.77 MB / 394.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00379/0.3871, allocations: 1.982 MB / 396 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005049/0.3877, allocations: 76.62 kB / 396.1 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005082/0.3928, allocations: 1.173 MB / 397.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007971/0.3936, allocations: 0.5361 MB / 397.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003686/0.3973, allocations: 2.613 MB / 400.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00836/0.4057, allocations: 6.388 MB / 406.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4057, allocations: 0 / 406.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4057, allocations: 0 / 406.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001806/0.4059, allocations: 0 / 406.8 MB, free: 8.633 MB / 318.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.007353/0.4133, allocations: 5.827 MB / 412.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.4133, allocations: 12.02 kB / 412.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006956/0.414, allocations: 0.752 MB / 413.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006205/0.4202, allocations: 4.669 MB / 418.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.368e-05/0.4203, allocations: 66.75 kB / 418.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/0.4206, allocations: 100.3 kB / 418.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/0.4229, allocations: 1.319 MB / 419.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.4229, allocations: 0.9375 kB / 419.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/0.4231, allocations: 36 kB / 419.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.183e-05/0.4231, allocations: 47.34 kB / 419.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002566/0.4257, allocations: 1.528 MB / 421.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009939/0.4356, allocations: 5.671 MB / 426.9 MB, free: 6.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.4375, allocations: 1.032 MB / 427.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001701/0.4392, allocations: 1.252 MB / 429.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05626/0.4955, allocations: 59.97 MB / 489.1 MB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/0.4965, allocations: 0.5871 MB / 489.7 MB, free: 15.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 2.365e-06/0.4965, allocations: 0 / 489.7 MB, free: 15.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003741/0.5003, allocations: 1.947 MB / 491.6 MB, free: 13.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.5004, allocations: 63.97 kB / 491.7 MB, free: 13.03 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007885/0.5082, allocations: 5.62 MB / 497.3 MB, free: 7.441 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002364/0.5085, allocations: 41.7 kB / 497.4 MB, free: 7.395 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002613/0.5111, allocations: 2.931 MB / 0.4886 GB, free: 4.457 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004151/0.5116, allocations: 303.8 kB / 0.4889 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.5117, allocations: 121.6 kB / 0.489 GB, free: 4.039 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.399e-05/0.5118, allocations: 301.1 kB / 0.4893 GB, free: 3.742 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009158/0.5128, allocations: 427.8 kB / 0.4897 GB, free: 3.328 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.5142, allocations: 1.116 MB / 0.4908 GB, free: 1.887 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002443/0.5166, allocations: 1.652 MB / 0.4924 GB, free: 15.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/0.5166, allocations: 4 kB / 0.4924 GB, free: 15.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004103/0.5208, allocations: 2.261 MB / 0.4946 GB, free: 13.64 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.5208, allocations: 17 kB / 0.4946 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002126/0.521, allocations: 164 kB / 0.4948 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.529e-05/0.5211, allocations: 36 kB / 0.4948 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.5223, allocations: 367.4 kB / 0.4951 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.135e-05/0.5223, allocations: 43.86 kB / 0.4952 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002332/0.5247, allocations: 206.1 kB / 0.4954 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/0.5249, allocations: 124 kB / 0.4955 GB, free: 12.71 MB / 430.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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001643/0.5265, allocations: 0.716 MB / 0.4962 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/0.5277, allocations: 0.7178 MB / 0.4969 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00544/0.5332, allocations: 2.212 MB / 0.4991 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.5332, allocations: 8 kB / 0.4991 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5332, allocations: 0 / 0.4991 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.5332, allocations: 7.984 kB / 0.4991 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00672/0.54, allocations: 3.657 MB / 0.5027 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001746/0.5402, allocations: 146.1 kB / 0.5028 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007959/0.541, allocations: 163.8 kB / 0.5029 GB, free: 5.016 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/0.541, allocations: 4 kB / 0.503 GB, free: 5.012 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.21e-05/0.5411, allocations: 60 kB / 0.503 GB, free: 4.953 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.5411, allocations: 0 / 0.503 GB, free: 4.953 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.5411, allocations: 4 kB / 0.503 GB, free: 4.949 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003882/0.545, allocations: 2.227 MB / 0.5052 GB, free: 2.691 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001609/0.5466, allocations: 0.8201 MB / 0.506 GB, free: 1.844 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006144/0.5472, allocations: 23.88 kB / 0.506 GB, free: 1.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.5484, allocations: 43.95 kB / 0.5061 GB, free: 1.777 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002371/0.5486, allocations: 100.5 kB / 0.5061 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.5488, allocations: 64 kB / 0.5062 GB, free: 1.617 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005115/0.5539, allocations: 3.639 MB / 0.5098 GB, free: 14.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5539, allocations: 0 / 0.5098 GB, free: 14.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002622/0.5566, allocations: 1.085 MB / 0.5108 GB, free: 12.93 MB / 446.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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001691/0.5583, allocations: 1.187 MB / 0.512 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002552/0.5608, allocations: 1.471 MB / 0.5134 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5608, allocations: 0 / 0.5134 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.562, allocations: 0.7981 MB / 0.5142 GB, free: 9.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004405/0.5664, allocations: 0.9178 MB / 0.5151 GB, free: 8.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/0.5787, allocations: 9.922 MB / 0.5248 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001871/0.5806, allocations: 2.604 MB / 0.5273 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002564/0.5832, allocations: 0.685 MB / 0.528 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004007/0.5836, allocations: 287.4 kB / 0.5283 GB, free: 11.1 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5836, allocations: 0 / 0.5283 GB, free: 11.1 MB / 462.1 MB Notification: Performance of Templates: time 0.2407/0.8243, allocations: 53.55 MB / 0.5806 GB, free: 153.5 MB / 462.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)