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.0009606/0.0009609, allocations: 97.64 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.005444/0.005444, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.449/1.449, allocations: 205.4 MB / 222.5 MB, free: 5.551 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.0004365/0.0004366, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2237, allocations: 47.57 MB / 327 MB, free: 1.445 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01172/0.2354, allocations: 13.92 MB / 340.9 MB, free: 5.426 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02175/0.2572, allocations: 19.67 MB / 360.6 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002539/0.2598, allocations: 31.81 kB / 360.6 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0037/0.2635, allocations: 1.092 MB / 361.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009127/0.2727, allocations: 1.93 MB / 363.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005764/0.2785, allocations: 1.16 MB / 364.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01149/0.29, allocations: 6.339 MB / 371.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008372/0.2909, allocations: 450.1 kB / 371.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001438/0.2923, allocations: 0.9598 MB / 372.6 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.2936, allocations: 1.083 MB / 373.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000174/0.2938, allocations: 44 kB / 373.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003699/0.2975, allocations: 1.128 MB / 374.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003485/0.2978, allocations: 309.5 kB / 375.1 MB, free: 3.078 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001394/0.2992, allocations: 1.434 MB / 376.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004464/0.3037, allocations: 3.84 MB / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3037, allocations: 4 kB / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3037, allocations: 0 / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.344e-05/0.3038, allocations: 0 / 380.4 MB, free: 13.77 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.004664/0.3085, allocations: 3.354 MB / 383.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.3085, allocations: 8.031 kB / 383.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003926/0.3089, allocations: 418.8 kB / 384.2 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00323/0.3122, allocations: 2.503 MB / 386.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.3122, allocations: 40.94 kB / 386.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.3124, allocations: 55.98 kB / 386.8 MB, free: 7.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.3137, allocations: 0.75 MB / 387.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.3138, allocations: 0 / 387.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.566e-05/0.3138, allocations: 20 kB / 387.5 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.3139, allocations: 19.98 kB / 387.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/0.3155, allocations: 0.8631 MB / 388.4 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005043/0.3205, allocations: 3.147 MB / 391.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001276/0.3218, allocations: 0.622 MB / 392.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.3229, allocations: 0.6595 MB / 392.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02871/0.3516, allocations: 30.22 MB / 423.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007634/0.3524, allocations: 381.7 kB / 423.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.3524, allocations: 4 kB / 423.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002521/0.3549, allocations: 1.178 MB / 424.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.355, allocations: 59.41 kB / 424.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003847/0.3589, allocations: 3.115 MB / 427.8 MB, free: 9.977 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.415e-05/0.3589, allocations: 33.7 kB / 427.8 MB, free: 9.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.3603, allocations: 1.58 MB / 429.4 MB, free: 8.344 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.3605, allocations: 169.6 kB / 429.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.3606, allocations: 73.62 kB / 429.6 MB, free: 8.098 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3607, allocations: 337.9 kB / 430 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006125/0.3614, allocations: 265.9 kB / 430.2 MB, free: 7.504 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008256/0.3622, allocations: 0.6216 MB / 430.9 MB, free: 6.711 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.3637, allocations: 0.9442 MB / 431.8 MB, free: 5.594 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.3637, allocations: 4 kB / 431.8 MB, free: 5.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002178/0.3659, allocations: 1.295 MB / 433.1 MB, free: 4.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.366, allocations: 8.938 kB / 433.1 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001055/0.3661, allocations: 84 kB / 433.2 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.026e-05/0.3661, allocations: 16 kB / 433.2 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007127/0.3668, allocations: 219.6 kB / 433.4 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.656e-05/0.3669, allocations: 27.92 kB / 433.5 MB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009542/0.3678, allocations: 119 kB / 433.6 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.981e-05/0.3679, allocations: 64 kB / 433.6 MB, free: 3.758 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.0007448/0.3687, allocations: 457.4 kB / 434.1 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003516/0.369, allocations: 403.1 kB / 434.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/0.3722, allocations: 1.25 MB / 435.7 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.3722, allocations: 7.984 kB / 435.7 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3722, allocations: 0 / 435.7 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3722, allocations: 0 / 435.7 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003488/0.3757, allocations: 2.209 MB / 437.9 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.44e-05/0.3758, allocations: 68 kB / 438 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005056/0.3764, allocations: 108 kB / 438.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.3764, allocations: 0 / 438.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-05/0.3764, allocations: 35.92 kB / 438.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.3765, allocations: 4 kB / 438.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3765, allocations: 0 / 438.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/0.3789, allocations: 1.4 MB / 439.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000768/0.3797, allocations: 488 kB / 440 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003039/0.38, allocations: 12 kB / 440 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007046/0.3807, allocations: 39.95 kB / 440.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.3809, allocations: 71.98 kB / 440.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-05/0.381, allocations: 43.88 kB / 440.2 MB, free: 13.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00281/0.3838, allocations: 2.015 MB / 442.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 4e-07/0.3838, allocations: 0 / 442.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001574/0.3854, allocations: 0.6012 MB / 442.8 MB, free: 10.44 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.001217/0.3866, allocations: 0.7689 MB / 443.6 MB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.3883, allocations: 0.8495 MB / 444.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3883, allocations: 0 / 444.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007776/0.389, allocations: 475.5 kB / 444.9 MB, free: 8.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.3914, allocations: 0.4954 MB / 445.4 MB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007384/0.3988, allocations: 5.521 MB / 450.9 MB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001149/0.4, allocations: 1.714 MB / 452.6 MB, free: 0.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001354/0.4013, allocations: 365.4 kB / 453 MB, free: 140 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.199/0.6003, allocations: 148.8 kB / 453.1 MB, free: 114.9 MB / 382.1 MB Notification: Performance of SimCode: time 2.555e-06/0.6004, allocations: 0 / 453.1 MB, free: 114.9 MB / 382.1 MB Notification: Performance of Templates: time 0.04794/0.6483, allocations: 30.88 MB / 484 MB, free: 91.77 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)