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.001102/0.001102, allocations: 97.91 kB / 15.05 MB, free: 1.105 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.001236/0.001237, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004708/0.0004708, allocations: 10.81 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2551, allocations: 47.58 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006936/0.2621, allocations: 6.23 MB / 332.7 MB, free: 12.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01888/0.281, allocations: 15.74 MB / 348.4 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.2823, allocations: 35.69 kB / 348.4 MB, free: 13.47 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002347/0.2846, allocations: 0.7118 MB / 349.2 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005469/0.2901, allocations: 1.55 MB / 350.7 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003812/0.2939, allocations: 1.079 MB / 351.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005918/0.2999, allocations: 3.082 MB / 354.9 MB, free: 7.035 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004294/0.3003, allocations: 205.1 kB / 355.1 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006873/0.301, allocations: 433.9 kB / 355.5 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005194/0.3016, allocations: 0.4971 MB / 356 MB, free: 5.891 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.377e-05/0.3016, allocations: 24 kB / 356 MB, free: 5.867 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003756/0.3054, allocations: 1.199 MB / 357.2 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001686/0.3056, allocations: 150.9 kB / 357.4 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003636/0.306, allocations: 324.8 kB / 357.7 MB, free: 4.195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001811/0.3078, allocations: 1.517 MB / 359.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3078, allocations: 0 / 359.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3078, allocations: 0 / 359.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.3078, allocations: 0 / 359.2 MB, free: 2.676 MB / 286.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.003105/0.3109, allocations: 1.807 MB / 361 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.311, allocations: 8.031 kB / 361 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.3113, allocations: 201.6 kB / 361.2 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002079/0.3133, allocations: 1.282 MB / 362.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.3134, allocations: 20.56 kB / 362.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.836e-05/0.3135, allocations: 24 kB / 362.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009174/0.3144, allocations: 453.2 kB / 363 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.3144, allocations: 0 / 363 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.3145, allocations: 16 kB / 363 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.3145, allocations: 11.98 kB / 363 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.3156, allocations: 0.5059 MB / 363.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.3184, allocations: 1.623 MB / 365.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009238/0.3194, allocations: 415.3 kB / 365.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.016/0.3354, allocations: 15.32 MB / 380.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006648/0.3361, allocations: 286.9 kB / 381.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.755e-06/0.3361, allocations: 0 / 381.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002145/0.3383, allocations: 0.9039 MB / 382 MB, free: 9.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.3384, allocations: 59.41 kB / 382.1 MB, free: 9.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00174/0.3401, allocations: 1.444 MB / 383.5 MB, free: 7.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.028e-05/0.3402, allocations: 29.7 kB / 383.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000567/0.3407, allocations: 0.7227 MB / 384.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.333e-05/0.3408, allocations: 102.7 kB / 384.4 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.706e-05/0.3409, allocations: 11.98 kB / 384.4 MB, free: 7.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.341, allocations: 322 kB / 384.7 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.3414, allocations: 181 kB / 384.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005924/0.342, allocations: 383.4 kB / 385.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004913/0.3425, allocations: 224.1 kB / 385.5 MB, free: 5.891 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3425, allocations: 4 kB / 385.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001476/0.344, allocations: 0.7942 MB / 386.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3441, allocations: 8 kB / 386.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.105e-05/0.3441, allocations: 40 kB / 386.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003467/0.3445, allocations: 144.6 kB / 386.5 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/0.3449, allocations: 120.1 kB / 386.6 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006023/0.3455, allocations: 0.6734 MB / 387.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005977/0.3461, allocations: 83.47 kB / 387.3 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.871e-05/0.3462, allocations: 32 kB / 387.4 MB, free: 3.961 MB / 318.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004756/0.3467, allocations: 273.6 kB / 387.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.3469, allocations: 189.7 kB / 387.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/0.3489, allocations: 0.7894 MB / 388.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.3489, allocations: 7.984 kB / 388.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3489, allocations: 3.938 kB / 388.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.349, allocations: 0 / 388.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.3512, allocations: 1.351 MB / 390 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.465e-05/0.3513, allocations: 36 kB / 390 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.3515, allocations: 63.95 kB / 390.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002362/0.3518, allocations: 120.8 kB / 390.2 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.573e-05/0.3518, allocations: 19.98 kB / 390.2 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005505/0.3524, allocations: 0.6695 MB / 390.9 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3524, allocations: 3.938 kB / 390.9 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.3537, allocations: 0.7898 MB / 391.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004042/0.3541, allocations: 278.8 kB / 392 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.3543, allocations: 12 kB / 392 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000439/0.3548, allocations: 39.95 kB / 392 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.3549, allocations: 43.91 kB / 392 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.888e-05/0.3549, allocations: 23.98 kB / 392.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001187/0.3561, allocations: 0.9419 MB / 393 MB, free: 14.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3561, allocations: 0 / 393 MB, free: 14.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009964/0.3571, allocations: 335.8 kB / 393.3 MB, free: 13.79 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008324/0.358, allocations: 0.5542 MB / 393.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3593, allocations: 0.5513 MB / 394.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3593, allocations: 0 / 394.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006453/0.3599, allocations: 307.4 kB / 394.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007652/0.3607, allocations: 246.9 kB / 395 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/0.3647, allocations: 2.524 MB / 397.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006965/0.3654, allocations: 1.188 MB / 398.7 MB, free: 8.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006451/0.3661, allocations: 199.9 kB / 398.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.3662, allocations: 91.42 kB / 399 MB, free: 8.031 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3663, allocations: 0 / 399 MB, free: 8.031 MB / 334.1 MB Notification: Performance of Templates: time 0.03094/0.3972, allocations: 17.97 MB / 417 MB, free: 6.031 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: