Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001087, allocations: 98.11 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.01001/0.01001, allocations: 170.3 kB / 16.27 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.403/1.403, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0004635/0.0004636, allocations: 15.98 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2448, allocations: 47.59 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007379/0.2522, allocations: 7.243 MB / 334.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02062/0.2729, allocations: 18.4 MB / 352.7 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001553/0.2745, allocations: 31.75 kB / 352.7 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002501/0.277, allocations: 0.7653 MB / 353.5 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006161/0.2831, allocations: 1.465 MB / 354.9 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003677/0.2868, allocations: 1.078 MB / 356 MB, free: 6.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004719/0.2916, allocations: 3.116 MB / 359.1 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003818/0.292, allocations: 221.1 kB / 359.3 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006271/0.2926, allocations: 489.4 kB / 359.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004974/0.2931, allocations: 0.524 MB / 360.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.838e-05/0.2932, allocations: 24 kB / 360.4 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003215/0.2964, allocations: 1.113 MB / 361.5 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.2966, allocations: 154.8 kB / 361.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006023/0.2972, allocations: 0.6889 MB / 362.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002625/0.2998, allocations: 2.144 MB / 364.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2998, allocations: 0 / 364.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2999, allocations: 0 / 364.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.2999, allocations: 0 / 364.5 MB, free: 13.78 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002582/0.3025, allocations: 1.799 MB / 366.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3025, allocations: 8.031 kB / 366.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.3027, allocations: 193.7 kB / 366.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.3045, allocations: 1.377 MB / 367.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.3046, allocations: 16.56 kB / 367.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.299e-05/0.3047, allocations: 35.89 kB / 367.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009078/0.3056, allocations: 453.1 kB / 368.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3056, allocations: 4 kB / 368.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.737e-05/0.3057, allocations: 16 kB / 368.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.3057, allocations: 11.98 kB / 368.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.3068, allocations: 0.5059 MB / 368.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002571/0.3094, allocations: 1.627 MB / 370.5 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009514/0.3104, allocations: 419.3 kB / 370.9 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007415/0.3111, allocations: 433.8 kB / 371.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01464/0.3258, allocations: 15.25 MB / 386.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006449/0.3265, allocations: 283.1 kB / 386.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.284e-06/0.3265, allocations: 0 / 386.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002149/0.3286, allocations: 0.9078 MB / 387.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.3287, allocations: 63.39 kB / 387.8 MB, free: 4.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.3304, allocations: 1.464 MB / 389.3 MB, free: 2.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.3304, allocations: 33.7 kB / 389.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005712/0.331, allocations: 0.7227 MB / 390 MB, free: 1.805 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.3311, allocations: 90.69 kB / 390.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.48e-05/0.3312, allocations: 45.7 kB / 390.2 MB, free: 1.664 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3313, allocations: 326 kB / 390.5 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004698/0.3318, allocations: 181 kB / 390.7 MB, free: 1.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005732/0.3324, allocations: 387.5 kB / 391 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.3334, allocations: 0.5839 MB / 391.6 MB, free: 16 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.3335, allocations: 4 kB / 391.6 MB, free: 12 kB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001481/0.335, allocations: 0.7982 MB / 392.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.335, allocations: 8 kB / 392.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.929e-05/0.335, allocations: 40 kB / 392.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/0.3354, allocations: 128.8 kB / 392.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004186/0.3358, allocations: 124 kB / 392.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005667/0.3364, allocations: 0.6812 MB / 393.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005502/0.3369, allocations: 91.34 kB / 393.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.213e-05/0.337, allocations: 32 kB / 393.5 MB, free: 14.08 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003775/0.3374, allocations: 273.6 kB / 393.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.3376, allocations: 189.7 kB / 394 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00199/0.3396, allocations: 0.7894 MB / 394.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3396, allocations: 4 kB / 394.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3396, allocations: 0 / 394.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3396, allocations: 0 / 394.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/0.3418, allocations: 1.354 MB / 396.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.825e-05/0.3418, allocations: 40.05 kB / 396.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.3421, allocations: 55.89 kB / 396.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002412/0.3424, allocations: 136.7 kB / 396.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.517e-05/0.3424, allocations: 16 kB / 396.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005128/0.3429, allocations: 0.6733 MB / 397 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.3429, allocations: 7.969 kB / 397.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.3442, allocations: 0.7554 MB / 397.8 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.3446, allocations: 282.6 kB / 398.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001403/0.3447, allocations: 8 kB / 398.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.3452, allocations: 35.97 kB / 398.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.3453, allocations: 47.89 kB / 398.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.3454, allocations: 19.98 kB / 398.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.3465, allocations: 0.9653 MB / 399.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3465, allocations: 3.938 kB / 399.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008345/0.3473, allocations: 327.8 kB / 399.5 MB, free: 7.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007829/0.3481, allocations: 0.574 MB / 400.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.3495, allocations: 0.5513 MB / 400.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3495, allocations: 0 / 400.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006772/0.3502, allocations: 315.4 kB / 400.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.3513, allocations: 242.9 kB / 401.2 MB, free: 6.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.3547, allocations: 2.696 MB / 403.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006398/0.3553, allocations: 1.157 MB / 405 MB, free: 2.297 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006548/0.356, allocations: 199.9 kB / 405.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.3561, allocations: 91.44 kB / 405.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of SimCode: time 1.894e-06/0.3561, allocations: 0 / 405.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of Templates: time 0.03194/0.3881, allocations: 18.98 MB / 424.3 MB, free: 15.01 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)