Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004917/0.004917, allocations: 99.95 kB / 15.73 MB, free: 6.473 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.001138/0.001138, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.435/1.435, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.00123/0.00123, allocations: 46.22 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08223/0.08347, allocations: 46.63 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01402/0.09752, allocations: 14.61 MB / 387.8 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02485/0.1224, allocations: 19.8 MB / 407.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002593/0.1251, allocations: 91.25 kB / 407.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003615/0.1287, allocations: 1.236 MB / 408.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008521/0.1373, allocations: 2.328 MB / 411.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005158/0.1425, allocations: 1.389 MB / 412.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.1526, allocations: 6.457 MB / 419.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006852/0.1533, allocations: 477.6 kB / 419.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.1547, allocations: 1.046 MB / 420.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.1558, allocations: 1.114 MB / 421.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.156, allocations: 79.94 kB / 421.8 MB, free: 496 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00374/0.1597, allocations: 1.156 MB / 422.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003565/0.1601, allocations: 337.5 kB / 423.3 MB, free: 15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001333/0.1614, allocations: 1.444 MB / 424.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004708/0.1662, allocations: 4 MB / 428.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1662, allocations: 0 / 428.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1662, allocations: 0 / 428.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.522e-05/0.1662, allocations: 4 kB / 428.7 MB, free: 9.523 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005312/0.1716, allocations: 3.841 MB / 432.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.1716, allocations: 11.97 kB / 432.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004417/0.172, allocations: 414.9 kB / 433 MB, free: 5.184 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003299/0.1754, allocations: 2.483 MB / 435.4 MB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.1754, allocations: 40.94 kB / 435.5 MB, free: 2.586 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.1755, allocations: 63.89 kB / 435.6 MB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.1769, allocations: 0.7304 MB / 436.3 MB, free: 1.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.1769, allocations: 0 / 436.3 MB, free: 1.785 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.177, allocations: 20 kB / 436.3 MB, free: 1.766 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.245e-05/0.177, allocations: 23.98 kB / 436.3 MB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.1786, allocations: 0.8163 MB / 437.1 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004981/0.1836, allocations: 3.126 MB / 440.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.1848, allocations: 0.5713 MB / 440.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009646/0.1858, allocations: 0.6438 MB / 441.5 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2052/0.391, allocations: 30.17 MB / 471.7 MB, free: 58.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006908/0.3917, allocations: 366.4 kB / 472 MB, free: 58.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.906e-06/0.3917, allocations: 1.125 kB / 472 MB, free: 58.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002222/0.394, allocations: 1.122 MB / 473.1 MB, free: 57.85 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.394, allocations: 61.78 kB / 473.2 MB, free: 57.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003541/0.3976, allocations: 3.104 MB / 476.3 MB, free: 56.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/0.3976, allocations: 41.62 kB / 476.3 MB, free: 56.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008849/0.3985, allocations: 1.577 MB / 477.9 MB, free: 54.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.3986, allocations: 159.9 kB / 478.1 MB, free: 54.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002316/0.3989, allocations: 228.1 kB / 478.3 MB, free: 54.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.487e-05/0.3989, allocations: 341.8 kB / 478.6 MB, free: 54.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004735/0.3994, allocations: 243.5 kB / 478.9 MB, free: 54.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.4, allocations: 0.604 MB / 479.5 MB, free: 53.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.4011, allocations: 0.9027 MB / 480.4 MB, free: 52.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.4011, allocations: 3.938 kB / 480.4 MB, free: 52.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001646/0.4028, allocations: 1.245 MB / 481.6 MB, free: 52.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.4028, allocations: 11.81 kB / 481.6 MB, free: 52.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-05/0.4029, allocations: 78.81 kB / 481.7 MB, free: 52.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.289e-05/0.4029, allocations: 23.66 kB / 481.7 MB, free: 52.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006203/0.4036, allocations: 197.2 kB / 481.9 MB, free: 52.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.011e-05/0.4036, allocations: 31.42 kB / 482 MB, free: 52.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008542/0.4044, allocations: 113.3 kB / 482.1 MB, free: 52.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.13e-05/0.4045, allocations: 62.66 kB / 482.1 MB, free: 52.08 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0005261/0.4051, allocations: 458.8 kB / 482.6 MB, free: 51.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002711/0.4054, allocations: 402 kB / 483 MB, free: 51.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002289/0.4077, allocations: 1.218 MB / 484.2 MB, free: 51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.4077, allocations: 13.98 kB / 484.2 MB, free: 50.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4077, allocations: 0 / 484.2 MB, free: 50.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.4077, allocations: 0 / 484.2 MB, free: 50.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.4104, allocations: 2.159 MB / 486.4 MB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.001e-05/0.4105, allocations: 70.59 kB / 486.4 MB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003988/0.4109, allocations: 93.36 kB / 486.5 MB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.4109, allocations: 3.906 kB / 486.5 MB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-05/0.411, allocations: 34.64 kB / 486.6 MB, free: 49.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.411, allocations: 3.938 kB / 486.6 MB, free: 49.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.411, allocations: 1.062 kB / 486.6 MB, free: 49.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.4127, allocations: 1.332 MB / 487.9 MB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005518/0.4133, allocations: 492 kB / 488.4 MB, free: 47.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002447/0.4135, allocations: 8 kB / 488.4 MB, free: 47.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006218/0.4141, allocations: 35.95 kB / 488.4 MB, free: 47.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.4143, allocations: 63.84 kB / 488.5 MB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.958e-05/0.4144, allocations: 39.98 kB / 488.5 MB, free: 47.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001836/0.4162, allocations: 2.019 MB / 490.5 MB, free: 45.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4162, allocations: 0 / 490.5 MB, free: 45.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001152/0.4174, allocations: 0.5973 MB / 491.1 MB, free: 45.05 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0009083/0.4183, allocations: 0.7831 MB / 491.9 MB, free: 44.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.4196, allocations: 0.8179 MB / 492.7 MB, free: 43.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4196, allocations: 0 / 492.7 MB, free: 43.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006014/0.4202, allocations: 447.2 kB / 493.2 MB, free: 43.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.4217, allocations: 0.5437 MB / 493.7 MB, free: 42.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004367/0.4261, allocations: 4.528 MB / 498.2 MB, free: 38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000706/0.4268, allocations: 1.71 MB / 500 MB, free: 36.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007765/0.4276, allocations: 362.9 kB / 0.4886 GB, free: 35.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.4278, allocations: 151.4 kB / 0.4887 GB, free: 35.77 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4278, allocations: 0 / 0.4887 GB, free: 35.77 MB / 382.1 MB Notification: Performance of Templates: time 0.04285/0.4707, allocations: 32.18 MB / 0.5202 GB, free: 3.547 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)