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.001496/0.001496, allocations: 106.9 kB / 16.92 MB, free: 5.781 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.001638/0.001638, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.37/1.37, 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.001175/0.001175, allocations: 47.94 kB / 280 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08851/0.0897, allocations: 46.63 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01341/0.1032, allocations: 14.6 MB / 341.2 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02229/0.1255, allocations: 19.79 MB / 361 MB, free: 1.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00192/0.1274, allocations: 31.81 kB / 361 MB, free: 1.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003041/0.1305, allocations: 1.229 MB / 362.3 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006608/0.1372, allocations: 2.312 MB / 364.6 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003947/0.1411, allocations: 1.392 MB / 366 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008609/0.1497, allocations: 6.441 MB / 372.4 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006744/0.1504, allocations: 481.6 kB / 372.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.1515, allocations: 0.9911 MB / 373.9 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001061/0.1526, allocations: 1.122 MB / 375 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001812/0.1528, allocations: 76 kB / 375.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003201/0.156, allocations: 1.156 MB / 376.2 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003193/0.1563, allocations: 341.5 kB / 376.6 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001208/0.1575, allocations: 1.448 MB / 378 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1512/0.3087, allocations: 3.973 MB / 382 MB, free: 19.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.3088, allocations: 0 / 382 MB, free: 19.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3088, allocations: 0 / 382 MB, free: 19.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001294/0.3089, allocations: 0 / 382 MB, free: 19.41 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007083/0.316, allocations: 3.856 MB / 385.8 MB, free: 17.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.3161, allocations: 8.812 kB / 385.9 MB, free: 17.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000724/0.3168, allocations: 414.9 kB / 386.3 MB, free: 17.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004302/0.3211, allocations: 2.506 MB / 388.8 MB, free: 16.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.549e-05/0.3212, allocations: 44.03 kB / 388.8 MB, free: 16.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.3214, allocations: 54.91 kB / 388.9 MB, free: 16.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.323, allocations: 0.7238 MB / 389.6 MB, free: 16.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.323, allocations: 5.438 kB / 389.6 MB, free: 16.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-05/0.3231, allocations: 23.45 kB / 389.6 MB, free: 16.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.111e-05/0.3231, allocations: 20.25 kB / 389.6 MB, free: 16.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.3249, allocations: 0.8187 MB / 390.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005876/0.3308, allocations: 3.114 MB / 393.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.332, allocations: 0.5704 MB / 394.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008545/0.3328, allocations: 0.6486 MB / 394.8 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02449/0.3573, allocations: 30.2 MB / 425 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007801/0.3581, allocations: 366.4 kB / 425.3 MB, free: 5.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.204e-06/0.3582, allocations: 0 / 425.3 MB, free: 5.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002455/0.3606, allocations: 1.118 MB / 426.5 MB, free: 4.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.3607, allocations: 59.41 kB / 426.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00425/0.3649, allocations: 3.104 MB / 429.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.052e-05/0.365, allocations: 37.69 kB / 429.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001329/0.3664, allocations: 1.572 MB / 431.2 MB, free: 108 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.3666, allocations: 170.9 kB / 431.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003091/0.3669, allocations: 226.1 kB / 431.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.367, allocations: 341.9 kB / 431.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006052/0.3676, allocations: 241.9 kB / 432.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00084/0.3685, allocations: 0.6046 MB / 432.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.37, allocations: 0.9053 MB / 433.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.37, allocations: 4 kB / 433.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002328/0.3723, allocations: 1.247 MB / 434.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3723, allocations: 8 kB / 435 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.3725, allocations: 85.53 kB / 435 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/0.3725, allocations: 16 kB / 435.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007563/0.3733, allocations: 204.6 kB / 435.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.331e-05/0.3733, allocations: 23.33 kB / 435.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.3746, allocations: 111 kB / 435.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.3748, allocations: 67.19 kB / 435.5 MB, free: 11.68 MB / 350.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.0007998/0.3756, allocations: 457.2 kB / 435.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004308/0.376, allocations: 407 kB / 436.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002964/0.379, allocations: 1.218 MB / 437.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.379, allocations: 8.547 kB / 437.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.379, allocations: 0 / 437.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.379, allocations: 0 / 437.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003729/0.3827, allocations: 2.156 MB / 439.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.74e-05/0.3829, allocations: 68 kB / 439.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.3834, allocations: 91.02 kB / 439.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.3834, allocations: 4 kB / 439.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.069e-05/0.3835, allocations: 34.75 kB / 439.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.3835, allocations: 7.375 kB / 439.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3835, allocations: 0 / 439.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.3858, allocations: 1.331 MB / 441.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009677/0.3868, allocations: 496 kB / 441.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003439/0.3872, allocations: 12 kB / 441.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006998/0.3879, allocations: 32.83 kB / 441.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.3881, allocations: 60.02 kB / 441.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.017e-05/0.3881, allocations: 39.98 kB / 441.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002859/0.391, allocations: 2.023 MB / 443.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.391, allocations: 3 kB / 443.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001591/0.3926, allocations: 0.6012 MB / 444.5 MB, free: 2.594 MB / 350.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.001071/0.3937, allocations: 0.7769 MB / 445.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001844/0.3956, allocations: 0.8307 MB / 446.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3956, allocations: 0 / 446.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007895/0.3964, allocations: 455.4 kB / 446.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002199/0.3986, allocations: 0.5371 MB / 447.1 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006531/0.4051, allocations: 4.603 MB / 451.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.4063, allocations: 1.722 MB / 453.4 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00126/0.4075, allocations: 361.4 kB / 453.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002179/0.4078, allocations: 147.4 kB / 453.9 MB, free: 9.289 MB / 366.1 MB Notification: Performance of SimCode: time 1.502e-06/0.4078, allocations: 0 / 453.9 MB, free: 9.289 MB / 366.1 MB Notification: Performance of Templates: time 0.05575/0.4635, allocations: 32.08 MB / 485.9 MB, free: 9.344 MB / 398.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)