Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001068/0.001068, allocations: 111.5 kB / 17.06 MB, free: 6.09 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.001005/0.001005, allocations: 200 kB / 18 MB, free: 5.168 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.398/1.398, allocations: 205.1 MB / 223.9 MB, free: 12.27 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.00133/0.00133, allocations: 55.92 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08727/0.08861, allocations: 46.61 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2257/0.3144, allocations: 14.6 MB / 389.1 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02531/0.3397, allocations: 19.79 MB / 408.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005833/0.3456, allocations: 94.75 kB / 409 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00529/0.351, allocations: 1.233 MB / 410.2 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01187/0.3629, allocations: 2.315 MB / 412.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006611/0.3696, allocations: 1.379 MB / 413.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01278/0.3824, allocations: 6.462 MB / 420.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001255/0.3837, allocations: 474.1 kB / 420.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002311/0.386, allocations: 1.039 MB / 421.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002189/0.3882, allocations: 1.119 MB / 423 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000235/0.3885, allocations: 74.38 kB / 423 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005492/0.394, allocations: 1.161 MB / 424.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005814/0.3946, allocations: 329.5 kB / 424.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002551/0.3971, allocations: 1.448 MB / 426 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007077/0.4042, allocations: 4.008 MB / 430 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4043, allocations: 0 / 430 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4043, allocations: 0 / 430 MB, free: 7.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.728e-05/0.4044, allocations: 0 / 430 MB, free: 7.938 MB / 350.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.006481/0.4109, allocations: 3.845 MB / 433.8 MB, free: 4.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.4109, allocations: 8.031 kB / 433.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005234/0.4115, allocations: 414.9 kB / 434.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004065/0.4155, allocations: 2.483 MB / 436.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.994e-05/0.4156, allocations: 40.94 kB / 436.8 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.4157, allocations: 59.91 kB / 436.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.4173, allocations: 0.7343 MB / 437.6 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.4173, allocations: 0 / 437.6 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.627e-05/0.4174, allocations: 16 kB / 437.6 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.171e-05/0.4174, allocations: 27.98 kB / 437.6 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.419, allocations: 0.8163 MB / 438.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005406/0.4244, allocations: 3.118 MB / 441.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.4256, allocations: 0.579 MB / 442.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009846/0.4266, allocations: 0.6447 MB / 442.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03156/0.4582, allocations: 30.18 MB / 472.9 MB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007676/0.459, allocations: 365.4 kB / 473.3 MB, free: 8.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 5.14e-06/0.459, allocations: 4 kB / 473.3 MB, free: 8.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002535/0.4616, allocations: 1.116 MB / 474.4 MB, free: 7.125 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.4616, allocations: 59.39 kB / 474.5 MB, free: 7.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00369/0.4653, allocations: 3.107 MB / 477.6 MB, free: 3.949 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.318e-05/0.4654, allocations: 33.7 kB / 477.6 MB, free: 3.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.4667, allocations: 1.577 MB / 479.2 MB, free: 2.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.4669, allocations: 169.7 kB / 479.4 MB, free: 2.152 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/0.4672, allocations: 226.1 kB / 479.6 MB, free: 1.926 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.4673, allocations: 337.9 kB / 479.9 MB, free: 1.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006457/0.468, allocations: 245.9 kB / 480.2 MB, free: 1.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007926/0.4688, allocations: 0.602 MB / 480.8 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.4703, allocations: 0.9001 MB / 481.7 MB, free: 15.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.4703, allocations: 4 kB / 481.7 MB, free: 15.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002319/0.4726, allocations: 1.249 MB / 482.9 MB, free: 14.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.4726, allocations: 8 kB / 482.9 MB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.4728, allocations: 83.98 kB / 483 MB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.4728, allocations: 20 kB / 483 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000735/0.4735, allocations: 203.6 kB / 483.2 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-05/0.4736, allocations: 27.86 kB / 483.2 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.4748, allocations: 119 kB / 483.4 MB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.4749, allocations: 60 kB / 483.4 MB, free: 13.73 MB / 414.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.0008622/0.4757, allocations: 461.4 kB / 483.9 MB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004226/0.4762, allocations: 399.1 kB / 484.3 MB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002652/0.4788, allocations: 1.215 MB / 485.5 MB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.4789, allocations: 4 kB / 485.5 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.4789, allocations: 0 / 485.5 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.4789, allocations: 3.984 kB / 485.5 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003764/0.4826, allocations: 2.155 MB / 487.6 MB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.705e-05/0.4828, allocations: 72.05 kB / 487.7 MB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004774/0.4832, allocations: 95.86 kB / 487.8 MB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.4833, allocations: 4 kB / 487.8 MB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/0.4833, allocations: 31.98 kB / 487.8 MB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.4833, allocations: 4 kB / 487.8 MB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4833, allocations: 0 / 487.8 MB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/0.4857, allocations: 1.333 MB / 489.2 MB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.4868, allocations: 497.7 kB / 489.7 MB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/0.4871, allocations: 12 kB / 489.7 MB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006775/0.4878, allocations: 31.89 kB / 489.7 MB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.4879, allocations: 59.95 kB / 489.8 MB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.367e-05/0.488, allocations: 47.86 kB / 489.8 MB, free: 7.195 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002653/0.4907, allocations: 2.023 MB / 491.8 MB, free: 5.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4907, allocations: 0 / 491.8 MB, free: 5.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001378/0.4921, allocations: 0.5973 MB / 492.4 MB, free: 4.582 MB / 414.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.00108/0.4932, allocations: 0.7741 MB / 493.2 MB, free: 3.801 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.4948, allocations: 0.8216 MB / 494 MB, free: 2.953 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4948, allocations: 4 kB / 494 MB, free: 2.949 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007656/0.4956, allocations: 451.2 kB / 494.5 MB, free: 2.484 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.4975, allocations: 0.5367 MB / 495 MB, free: 1.953 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006253/0.5038, allocations: 4.524 MB / 499.5 MB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.5049, allocations: 1.71 MB / 0.4895 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001057/0.506, allocations: 369.4 kB / 0.4898 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.5062, allocations: 155.4 kB / 0.49 GB, free: 11.13 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5062, allocations: 0 / 0.49 GB, free: 11.13 MB / 430.1 MB Notification: Performance of Templates: time 0.0545/0.5607, allocations: 32.76 MB / 0.522 GB, free: 10.31 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)