Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.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.0009614/0.0009614, allocations: 98.03 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.004943/0.004943, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.391/1.391, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004737/0.0004739, allocations: 10.66 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2303, allocations: 47.59 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007078/0.2374, allocations: 7.251 MB / 334.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02048/0.2579, allocations: 18.39 MB / 352.7 MB, free: 9.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001329/0.2593, allocations: 31.75 kB / 352.7 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002386/0.2617, allocations: 0.7576 MB / 353.5 MB, free: 8.852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006538/0.2682, allocations: 1.469 MB / 354.9 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004917/0.2731, allocations: 1.07 MB / 356 MB, free: 6.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005221/0.2784, allocations: 3.12 MB / 359.1 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.2788, allocations: 217.1 kB / 359.3 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005947/0.2794, allocations: 493.5 kB / 359.8 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005111/0.2799, allocations: 0.5317 MB / 360.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.246e-05/0.28, allocations: 24 kB / 360.4 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003509/0.2835, allocations: 1.109 MB / 361.5 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.2836, allocations: 154.8 kB / 361.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006043/0.2843, allocations: 0.685 MB / 362.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002836/0.2871, allocations: 2.14 MB / 364.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2871, allocations: 4 kB / 364.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2871, allocations: 0 / 364.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.2871, allocations: 0 / 364.5 MB, free: 13.79 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.002709/0.2899, allocations: 1.803 MB / 366.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.2899, allocations: 11.97 kB / 366.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.2902, allocations: 197.7 kB / 366.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.292, allocations: 1.37 MB / 367.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.292, allocations: 16.56 kB / 367.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.297e-05/0.2921, allocations: 35.89 kB / 367.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009135/0.293, allocations: 453.2 kB / 368.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.293, allocations: 0 / 368.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.482e-05/0.2931, allocations: 8 kB / 368.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.2931, allocations: 11.98 kB / 368.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.2943, allocations: 0.5137 MB / 368.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002652/0.2969, allocations: 1.627 MB / 370.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009986/0.2979, allocations: 419.2 kB / 370.9 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007585/0.2987, allocations: 437.8 kB / 371.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.015/0.3137, allocations: 15.26 MB / 386.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006649/0.3144, allocations: 279.1 kB / 386.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.084e-06/0.3144, allocations: 0 / 386.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002141/0.3166, allocations: 0.9078 MB / 387.8 MB, free: 4.141 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.3167, allocations: 63.38 kB / 387.8 MB, free: 4.066 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/0.3184, allocations: 1.46 MB / 389.3 MB, free: 2.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.3184, allocations: 33.7 kB / 389.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005927/0.319, allocations: 0.7227 MB / 390 MB, free: 1.805 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.353e-05/0.3191, allocations: 94.73 kB / 390.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.894e-05/0.3192, allocations: 45.7 kB / 390.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.3193, allocations: 326 kB / 390.5 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004686/0.3198, allocations: 181 kB / 390.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005885/0.3204, allocations: 383.5 kB / 391 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.3214, allocations: 0.58 MB / 391.6 MB, free: 20 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3214, allocations: 0 / 391.6 MB, free: 20 kB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001434/0.3229, allocations: 0.7984 MB / 392.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.3229, allocations: 8 kB / 392.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.858e-05/0.323, allocations: 44.03 kB / 392.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003111/0.3233, allocations: 136.8 kB / 392.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004275/0.3237, allocations: 115.8 kB / 392.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005796/0.3243, allocations: 0.685 MB / 393.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/0.3249, allocations: 87.34 kB / 393.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.529e-05/0.3249, allocations: 36.06 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.0003835/0.3253, allocations: 277.6 kB / 393.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.3255, allocations: 189.7 kB / 394 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/0.3275, allocations: 0.7854 MB / 394.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3275, allocations: 8 kB / 394.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3275, allocations: 0 / 394.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3275, allocations: 0 / 394.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.3297, allocations: 1.347 MB / 396.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.127e-05/0.3298, allocations: 43.98 kB / 396.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.3301, allocations: 59.95 kB / 396.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002353/0.3303, allocations: 124.8 kB / 396.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.529e-05/0.3304, allocations: 16 kB / 396.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005502/0.3309, allocations: 0.6811 MB / 397 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3309, allocations: 0 / 397 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.3323, allocations: 0.7554 MB / 397.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.3326, allocations: 282.6 kB / 398.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.3328, allocations: 12 kB / 398.1 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004412/0.3332, allocations: 35.97 kB / 398.1 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3333, allocations: 43.89 kB / 398.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.371e-05/0.3334, allocations: 27.92 kB / 398.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001131/0.3345, allocations: 0.9692 MB / 399.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3345, allocations: 0 / 399.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008486/0.3354, 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.0008414/0.3362, allocations: 0.5739 MB / 400.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.3376, allocations: 0.5513 MB / 400.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3376, allocations: 0 / 400.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.3383, allocations: 315.5 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.001096/0.3394, allocations: 250.9 kB / 401.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.343, allocations: 2.693 MB / 403.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006397/0.3437, allocations: 1.153 MB / 405 MB, free: 2.297 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006451/0.3444, allocations: 203.9 kB / 405.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.3445, allocations: 91.38 kB / 405.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3445, allocations: 4 kB / 405.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of Templates: time 0.03177/0.3763, allocations: 18.98 MB / 424.3 MB, free: 15 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)