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.001245/0.001245, allocations: 104 kB / 16.92 MB, free: 5.793 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.001274/0.001274, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.375/1.375, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.00116/0.00116, allocations: 43.94 kB / 280 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08044/0.08161, allocations: 46.63 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02208/0.1037, allocations: 25.34 MB / 352 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02702/0.1308, allocations: 21.33 MB / 373.3 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005908/0.1368, allocations: 59.62 kB / 373.4 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005112/0.142, allocations: 1.722 MB / 375.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01307/0.1551, allocations: 3.168 MB / 378.2 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1634/0.3185, allocations: 1.565 MB / 379.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0189/0.3374, allocations: 12.35 MB / 392.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.3393, allocations: 0.8708 MB / 393 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003872/0.3431, allocations: 1.843 MB / 394.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00366/0.3468, allocations: 2.044 MB / 396.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008062/0.3477, allocations: 141.2 kB / 397.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005627/0.3533, allocations: 1.219 MB / 398.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006769/0.354, allocations: 0.6101 MB / 398.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003793/0.3578, allocations: 2.653 MB / 401.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006706/0.3645, allocations: 6.616 MB / 408.2 MB, free: 7.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.826e-06/0.3645, allocations: 8 kB / 408.2 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3646, allocations: 0 / 408.2 MB, free: 7.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001705/0.3647, allocations: 0 / 408.2 MB, free: 7.664 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.008029/0.3728, allocations: 6.733 MB / 414.9 MB, free: 1.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.3728, allocations: 12.03 kB / 414.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006045/0.3734, allocations: 0.7481 MB / 415.7 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006249/0.3797, allocations: 4.669 MB / 420.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.3798, allocations: 66 kB / 420.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.38, allocations: 103.9 kB / 420.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.3822, allocations: 1.3 MB / 421.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.3822, allocations: 4.75 kB / 421.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001192/0.3823, allocations: 39.98 kB / 421.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.294e-05/0.3824, allocations: 37.67 kB / 421.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002464/0.3848, allocations: 1.487 MB / 423.4 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009963/0.3948, allocations: 5.646 MB / 429 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.3966, allocations: 0.9843 MB / 430 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/0.3983, allocations: 1.227 MB / 431.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05449/0.4528, allocations: 59.92 MB / 491.1 MB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.4538, allocations: 0.5663 MB / 491.7 MB, free: 12.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 3.466e-06/0.4539, allocations: 0 / 491.7 MB, free: 12.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003499/0.4574, allocations: 1.88 MB / 493.6 MB, free: 10.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.4574, allocations: 63.97 kB / 493.6 MB, free: 10.64 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007671/0.4651, allocations: 5.632 MB / 499.3 MB, free: 5.039 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002285/0.4654, allocations: 37.7 kB / 499.3 MB, free: 4.996 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002515/0.4679, allocations: 2.934 MB / 0.4905 GB, free: 2.055 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004754/0.4684, allocations: 294.7 kB / 0.4908 GB, free: 1.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006016/0.469, allocations: 426.5 kB / 0.4912 GB, free: 1.348 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4691, allocations: 305.1 kB / 0.4914 GB, free: 1.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009184/0.47, allocations: 397.1 kB / 0.4918 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.4714, allocations: 1.1 MB / 0.4929 GB, free: 15.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002232/0.4736, allocations: 1.614 MB / 0.4945 GB, free: 13.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.4737, allocations: 4 kB / 0.4945 GB, free: 13.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003749/0.4774, allocations: 2.215 MB / 0.4966 GB, free: 11.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.4775, allocations: 16 kB / 0.4967 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002088/0.4777, allocations: 164 kB / 0.4968 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.155e-05/0.4777, allocations: 36 kB / 0.4969 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.4789, allocations: 358.9 kB / 0.4972 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.934e-05/0.4789, allocations: 47.8 kB / 0.4972 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.4808, allocations: 194.1 kB / 0.4974 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/0.481, allocations: 128 kB / 0.4975 GB, free: 10.39 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.001389/0.4824, allocations: 0.7082 MB / 0.4982 GB, free: 9.672 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007993/0.4832, allocations: 0.7256 MB / 0.4989 GB, free: 8.938 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005174/0.4883, allocations: 2.168 MB / 0.5011 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.4884, allocations: 8 kB / 0.5011 GB, free: 6.766 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.4884, allocations: 3.938 kB / 0.5011 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.4884, allocations: 3.984 kB / 0.5011 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00611/0.4945, allocations: 3.617 MB / 0.5046 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001791/0.4947, allocations: 140 kB / 0.5047 GB, free: 2.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/0.4955, allocations: 159.9 kB / 0.5049 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.4955, allocations: 3.984 kB / 0.5049 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.261e-05/0.4956, allocations: 59.98 kB / 0.505 GB, free: 2.734 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.4957, allocations: 4 kB / 0.505 GB, free: 2.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4957, allocations: 3.938 kB / 0.505 GB, free: 2.727 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0037/0.4994, allocations: 2.167 MB / 0.5071 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001541/0.5009, allocations: 0.8241 MB / 0.5079 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005742/0.5015, allocations: 19.98 kB / 0.5079 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.5026, allocations: 31.97 kB / 0.5079 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00022/0.5028, allocations: 96.48 kB / 0.508 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/0.503, allocations: 71.98 kB / 0.5081 GB, free: 15.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005285/0.5082, allocations: 3.633 MB / 0.5116 GB, free: 11.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5083, allocations: 3.938 kB / 0.5116 GB, free: 11.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002698/0.511, allocations: 1.085 MB / 0.5127 GB, free: 10.77 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.001877/0.5129, allocations: 1.179 MB / 0.5139 GB, free: 9.797 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002916/0.5158, allocations: 1.455 MB / 0.5153 GB, free: 8.301 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5158, allocations: 12.31 kB / 0.5153 GB, free: 8.289 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.5169, allocations: 0.7667 MB / 0.516 GB, free: 7.473 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003834/0.5208, allocations: 0.9928 MB / 0.517 GB, free: 6.477 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/0.5324, allocations: 8.282 MB / 0.5251 GB, free: 14.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/0.5344, allocations: 2.608 MB / 0.5276 GB, free: 11.53 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002547/0.537, allocations: 0.685 MB / 0.5283 GB, free: 10.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004279/0.5374, allocations: 287.4 kB / 0.5286 GB, free: 10.56 MB / 462.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5374, allocations: 0 / 0.5286 GB, free: 10.56 MB / 462.1 MB Notification: Performance of Templates: time 0.2405/0.7779, allocations: 55.41 MB / 0.5827 GB, free: 152.9 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)