Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001301/0.001301, allocations: 96.62 kB / 15.36 MB, free: 0.7344 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.00888/0.00888, allocations: 169.8 kB / 16.27 MB, free: 6.648 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.387/1.387, allocations: 205.4 MB / 222.5 MB, free: 5.559 MB / 174.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.0004488/0.0004489, allocations: 19.98 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.233, allocations: 47.58 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02057/0.2536, allocations: 24.3 MB / 351.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.03036/0.284, allocations: 21.21 MB / 372.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006559/0.2907, allocations: 63.62 kB / 372.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006806/0.2975, allocations: 1.475 MB / 374.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0142/0.3117, allocations: 2.674 MB / 376.7 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006166/0.318, allocations: 1.316 MB / 378.1 MB, free: 128 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01847/0.3365, allocations: 12.14 MB / 390.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.3381, allocations: 0.8219 MB / 391 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002475/0.3406, allocations: 1.764 MB / 392.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001889/0.3425, allocations: 1.991 MB / 394.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002449/0.3427, allocations: 76 kB / 394.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003584/0.3463, allocations: 1.159 MB / 396 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000573/0.3469, allocations: 0.5423 MB / 396.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002546/0.3495, allocations: 2.606 MB / 399.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007302/0.3568, allocations: 6.386 MB / 405.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3568, allocations: 0 / 405.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3568, allocations: 4 kB / 405.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001557/0.357, allocations: 0 / 405.6 MB, free: 4.48 MB / 334.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.008661/0.3656, allocations: 5.819 MB / 411.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.3657, allocations: 8.031 kB / 411.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008234/0.3665, allocations: 0.7526 MB / 412.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007888/0.3744, allocations: 4.668 MB / 416.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.685e-05/0.3745, allocations: 69.98 kB / 416.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.3748, allocations: 103.8 kB / 417 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002359/0.3771, allocations: 1.321 MB / 418.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.3772, allocations: 0 / 418.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.3773, allocations: 36 kB / 418.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-05/0.3773, allocations: 43.91 kB / 418.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002628/0.38, allocations: 1.531 MB / 419.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009819/0.3898, allocations: 5.673 MB / 425.6 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.3917, allocations: 1.029 MB / 426.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00176/0.3935, allocations: 1.247 MB / 427.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2257/0.6192, allocations: 59.97 MB / 487.8 MB, free: 84.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009018/0.6201, allocations: 0.5829 MB / 488.4 MB, free: 83.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 2.996e-06/0.6202, allocations: 0 / 488.4 MB, free: 83.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.003024/0.6232, allocations: 1.946 MB / 490.3 MB, free: 82.33 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.6232, allocations: 63.95 kB / 490.4 MB, free: 82.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00522/0.6285, allocations: 5.628 MB / 496 MB, free: 76.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.6286, allocations: 38.92 kB / 496.1 MB, free: 76.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001691/0.6303, allocations: 2.931 MB / 499 MB, free: 73.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00022/0.6305, allocations: 302.6 kB / 499.3 MB, free: 73.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.6307, allocations: 122.6 kB / 499.4 MB, free: 73.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.092e-05/0.6307, allocations: 304.9 kB / 499.7 MB, free: 72.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007664/0.6315, allocations: 427.3 kB / 0.4884 GB, free: 72.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000929/0.6324, allocations: 1.109 MB / 0.4895 GB, free: 71.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/0.6342, allocations: 1.656 MB / 0.4911 GB, free: 69.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.6343, allocations: 4 kB / 0.4911 GB, free: 69.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003536/0.6378, allocations: 2.265 MB / 0.4933 GB, free: 66.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.6379, allocations: 16 kB / 0.4933 GB, free: 66.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000175/0.638, allocations: 160 kB / 0.4935 GB, free: 66.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.834e-05/0.6381, allocations: 35.94 kB / 0.4935 GB, free: 66.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.6392, allocations: 374.5 kB / 0.4939 GB, free: 66.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.135e-05/0.6392, allocations: 51.78 kB / 0.4939 GB, free: 66.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002538/0.6418, allocations: 202.1 kB / 0.4941 GB, free: 66.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/0.642, allocations: 120 kB / 0.4942 GB, free: 66.05 MB / 382.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.001629/0.6436, allocations: 0.717 MB / 0.4949 GB, free: 65.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008706/0.6445, allocations: 0.7178 MB / 0.4956 GB, free: 64.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004581/0.6491, allocations: 2.207 MB / 0.4978 GB, free: 62.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.6491, allocations: 11.98 kB / 0.4978 GB, free: 62.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.6491, allocations: 0 / 0.4978 GB, free: 62.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.6491, allocations: 4 kB / 0.4978 GB, free: 62.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004671/0.6538, allocations: 3.67 MB / 0.5014 GB, free: 58.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001347/0.6539, allocations: 140 kB / 0.5015 GB, free: 58.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000717/0.6547, allocations: 163.4 kB / 0.5017 GB, free: 58.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.6547, allocations: 4 kB / 0.5017 GB, free: 58.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.592e-05/0.6548, allocations: 63.98 kB / 0.5018 GB, free: 58.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.6548, allocations: 4 kB / 0.5018 GB, free: 58.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6548, allocations: 0 / 0.5018 GB, free: 58.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002933/0.6577, allocations: 2.227 MB / 0.5039 GB, free: 56.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.6588, allocations: 0.824 MB / 0.5047 GB, free: 55.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004943/0.6593, allocations: 12 kB / 0.5048 GB, free: 55.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.6605, allocations: 43.97 kB / 0.5048 GB, free: 55.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.6607, allocations: 96.48 kB / 0.5049 GB, free: 55.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.6608, allocations: 75.98 kB / 0.505 GB, free: 55.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003813/0.6646, allocations: 3.629 MB / 0.5085 GB, free: 51.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6646, allocations: 0 / 0.5085 GB, free: 51.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002502/0.6671, allocations: 1.084 MB / 0.5096 GB, free: 50.38 MB / 382.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.001525/0.6687, allocations: 1.187 MB / 0.5107 GB, free: 49.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002144/0.6708, allocations: 1.479 MB / 0.5122 GB, free: 47.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.6708, allocations: 0 / 0.5122 GB, free: 47.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000926/0.6718, allocations: 0.7903 MB / 0.5129 GB, free: 47.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003718/0.6755, allocations: 0.9246 MB / 0.5138 GB, free: 46.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009081/0.6846, allocations: 9.912 MB / 0.5235 GB, free: 36.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.6859, allocations: 2.604 MB / 0.5261 GB, free: 33.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002181/0.6881, allocations: 0.6888 MB / 0.5267 GB, free: 32.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/0.6884, allocations: 283.4 kB / 0.527 GB, free: 32.61 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6884, allocations: 0 / 0.527 GB, free: 32.61 MB / 382.1 MB Notification: Performance of Templates: time 0.08614/0.7746, allocations: 53.55 MB / 0.5793 GB, free: 10.98 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)