Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001423/0.001423, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.379/1.379, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001241/0.001241, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1869, allocations: 46.63 MB / 325.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01297/0.1999, allocations: 14.62 MB / 339.9 MB, free: 5.262 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02168/0.2216, allocations: 19.79 MB / 359.7 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001946/0.2236, allocations: 27.81 kB / 359.7 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002824/0.2265, allocations: 1.241 MB / 361 MB, free: 112 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007046/0.2336, allocations: 2.304 MB / 363.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004023/0.2376, allocations: 1.381 MB / 364.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009228/0.2469, allocations: 6.437 MB / 371.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007491/0.2476, allocations: 473.6 kB / 371.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.2488, allocations: 1.003 MB / 372.6 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.2499, allocations: 1.118 MB / 373.7 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002076/0.2501, allocations: 76 kB / 373.8 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003379/0.2535, allocations: 1.156 MB / 374.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003378/0.2538, allocations: 349.4 kB / 375.3 MB, free: 1.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00132/0.2552, allocations: 1.44 MB / 376.7 MB, free: 300 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00452/0.2597, allocations: 3.969 MB / 380.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2597, allocations: 3.938 kB / 380.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2597, allocations: 4 kB / 380.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.911e-05/0.2598, allocations: 0 / 380.7 MB, free: 12.3 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.00506/0.2649, allocations: 3.861 MB / 384.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.2649, allocations: 12.03 kB / 384.5 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004545/0.2654, allocations: 410.9 kB / 384.9 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003319/0.2687, allocations: 2.51 MB / 387.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/0.2688, allocations: 40.94 kB / 387.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.2689, allocations: 52 kB / 387.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.2702, allocations: 0.7265 MB / 388.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.2702, allocations: 0 / 388.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-05/0.2703, allocations: 20 kB / 388.3 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.2703, allocations: 23.98 kB / 388.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.2719, allocations: 0.8202 MB / 389.1 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004981/0.2769, allocations: 3.116 MB / 392.3 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.2782, allocations: 0.5713 MB / 392.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000979/0.2791, allocations: 0.6477 MB / 393.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02753/0.3067, allocations: 30.2 MB / 423.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007235/0.3074, allocations: 361.7 kB / 424 MB, free: 12.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.726e-06/0.3075, allocations: 0 / 424 MB, free: 12.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002162/0.3096, allocations: 1.12 MB / 425.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.3097, allocations: 59.34 kB / 425.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003382/0.3131, allocations: 3.104 MB / 428.3 MB, free: 8.266 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.3131, allocations: 37.7 kB / 428.3 MB, free: 8.223 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001233/0.3144, allocations: 1.58 MB / 429.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.3145, allocations: 169.6 kB / 430.1 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003595/0.3149, allocations: 230.2 kB / 430.3 MB, free: 6.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.315, allocations: 337.9 kB / 430.6 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005751/0.3156, allocations: 237.9 kB / 430.9 MB, free: 5.664 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007803/0.3164, allocations: 0.6059 MB / 431.5 MB, free: 4.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.3178, allocations: 0.8974 MB / 432.4 MB, free: 3.812 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.3178, allocations: 4 kB / 432.4 MB, free: 3.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002095/0.3199, allocations: 1.252 MB / 433.6 MB, free: 2.543 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.32, allocations: 12 kB / 433.7 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/0.3201, allocations: 83.98 kB / 433.7 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.066e-05/0.3201, allocations: 20 kB / 433.8 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007404/0.3209, allocations: 208.3 kB / 434 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.392e-05/0.3209, allocations: 23.92 kB / 434 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009559/0.3219, allocations: 107.1 kB / 434.1 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.322, allocations: 68 kB / 434.1 MB, free: 2.031 MB / 366.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.0007356/0.3227, allocations: 461.4 kB / 434.6 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003526/0.3231, allocations: 403.1 kB / 435 MB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/0.326, allocations: 1.215 MB / 436.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.326, allocations: 8 kB / 436.2 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3261, allocations: 0 / 436.2 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.3261, allocations: 7.922 kB / 436.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/0.3293, allocations: 2.155 MB / 438.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.144e-05/0.3294, allocations: 71.98 kB / 438.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004895/0.3299, allocations: 87.86 kB / 438.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.3299, allocations: 4 kB / 438.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.475e-05/0.33, allocations: 36.06 kB / 438.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.33, allocations: 4 kB / 438.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.33, allocations: 0 / 438.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002253/0.3323, allocations: 1.321 MB / 439.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007373/0.333, allocations: 499.9 kB / 440.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.3333, allocations: 12 kB / 440.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006763/0.334, allocations: 32.02 kB / 440.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.3342, allocations: 63.89 kB / 440.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.806e-05/0.3342, allocations: 39.94 kB / 440.5 MB, free: 11.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002441/0.3367, allocations: 2.019 MB / 442.6 MB, free: 9.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3367, allocations: 0 / 442.6 MB, free: 9.492 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001324/0.338, allocations: 0.605 MB / 443.2 MB, free: 8.887 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.00107/0.3391, allocations: 0.7728 MB / 443.9 MB, free: 8.109 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.3408, allocations: 0.8246 MB / 444.8 MB, free: 7.258 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3409, allocations: 1.25 kB / 444.8 MB, free: 7.258 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007844/0.3416, allocations: 455.4 kB / 445.2 MB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001808/0.3435, allocations: 0.5421 MB / 445.7 MB, free: 6.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006043/0.3495, allocations: 4.602 MB / 450.3 MB, free: 1.602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1283/0.4778, allocations: 1.72 MB / 452.1 MB, free: 116.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001628/0.4795, allocations: 363.4 kB / 452.4 MB, free: 116.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/0.4798, allocations: 151.2 kB / 452.6 MB, free: 116.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4798, allocations: 1.203 kB / 452.6 MB, free: 116.3 MB / 382.1 MB Notification: Performance of Templates: time 0.04347/0.5233, allocations: 32.07 MB / 484.6 MB, free: 91.28 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)