Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0011/0.0011, allocations: 109 kB / 16.51 MB, free: 6.707 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.001163/0.001163, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.378/1.378, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.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.00109/0.00109, allocations: 55.92 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.09195, allocations: 46.62 MB / 326 MB, free: 4.91 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008747/0.1007, allocations: 7.694 MB / 333.6 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02003/0.1208, allocations: 18.66 MB / 352.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000985/0.1218, allocations: 35.69 kB / 352.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002177/0.1241, allocations: 0.7399 MB / 353.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005288/0.1294, allocations: 1.469 MB / 354.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003935/0.1333, allocations: 1.074 MB / 355.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004904/0.1383, allocations: 3.124 MB / 358.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003524/0.1386, allocations: 217.1 kB / 359 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005722/0.1392, allocations: 485.6 kB / 359.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004616/0.1397, allocations: 0.5434 MB / 360 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.864e-05/0.1398, allocations: 28 kB / 360 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0036/0.1434, allocations: 1.105 MB / 361.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.1436, allocations: 158.8 kB / 361.3 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000607/0.1442, allocations: 0.6637 MB / 361.9 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002716/0.1469, allocations: 2.172 MB / 364.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1469, allocations: 0 / 364.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1469, allocations: 0 / 364.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.147, allocations: 0 / 364.1 MB, free: 14.58 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00282/0.1498, allocations: 2.035 MB / 366.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1498, allocations: 8.031 kB / 366.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.1501, allocations: 197.7 kB / 366.3 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/0.1518, allocations: 1.37 MB / 367.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.1519, allocations: 24.5 kB / 367.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.364e-05/0.1519, allocations: 31.89 kB / 367.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008982/0.1528, allocations: 433.2 kB / 368.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1529, allocations: 4 kB / 368.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.399e-05/0.1529, allocations: 12 kB / 368.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.1529, allocations: 4 kB / 368.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.154, allocations: 478.1 kB / 368.7 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.1564, allocations: 1.615 MB / 370.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000891/0.1573, allocations: 379.2 kB / 370.7 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007031/0.158, allocations: 405.9 kB / 371.1 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1703/0.3283, allocations: 15.23 MB / 386.3 MB, free: 48.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006826/0.329, allocations: 255.4 kB / 386.5 MB, free: 48.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.655e-06/0.329, allocations: 0 / 386.5 MB, free: 48.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002252/0.3313, allocations: 0.8486 MB / 387.4 MB, free: 48.56 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.3314, allocations: 56.89 kB / 387.4 MB, free: 48.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.3332, allocations: 1.465 MB / 388.9 MB, free: 47.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.3332, allocations: 34.2 kB / 388.9 MB, free: 47.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004713/0.3337, allocations: 0.7229 MB / 389.7 MB, free: 47.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.5e-05/0.3338, allocations: 93.81 kB / 389.8 MB, free: 47.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.3339, allocations: 124.2 kB / 389.9 MB, free: 47.21 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.148e-05/0.334, allocations: 328.9 kB / 390.2 MB, free: 46.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00044/0.3345, allocations: 159.6 kB / 390.3 MB, free: 46.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004912/0.335, allocations: 357.1 kB / 390.7 MB, free: 46.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008606/0.3358, allocations: 0.537 MB / 391.2 MB, free: 46.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.3358, allocations: 1.438 kB / 391.2 MB, free: 46.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001362/0.3372, allocations: 0.7623 MB / 392 MB, free: 45.9 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3372, allocations: 7.75 kB / 392 MB, free: 45.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.175e-05/0.3373, allocations: 38.97 kB / 392 MB, free: 45.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003011/0.3376, allocations: 144.6 kB / 392.2 MB, free: 45.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/0.338, allocations: 106.6 kB / 392.3 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005094/0.3386, allocations: 0.6787 MB / 393 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005482/0.3391, allocations: 71.45 kB / 393 MB, free: 45.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.383e-05/0.3392, allocations: 34.31 kB / 393.1 MB, free: 45.26 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 (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.0003744/0.3396, allocations: 281.7 kB / 393.3 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.3397, allocations: 189.4 kB / 393.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.3416, allocations: 0.7478 MB / 394.3 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.3416, allocations: 3.625 kB / 394.3 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3416, allocations: 7.75 kB / 394.3 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3416, allocations: 3.047 kB / 394.3 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.3433, allocations: 1.324 MB / 395.6 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-05/0.3434, allocations: 33.22 kB / 395.7 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002432/0.3436, allocations: 53.47 kB / 395.7 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002345/0.3439, allocations: 123.3 kB / 395.8 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.3439, allocations: 17.98 kB / 395.8 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004136/0.3444, allocations: 0.6679 MB / 396.5 MB, free: 43.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3444, allocations: 3.938 kB / 396.5 MB, free: 43.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.3456, allocations: 0.7097 MB / 397.2 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.346, allocations: 289.4 kB / 397.5 MB, free: 42.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.3461, allocations: 8.188 kB / 397.5 MB, free: 42.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004287/0.3466, allocations: 30.89 kB / 397.5 MB, free: 42.63 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.3467, allocations: 37.14 kB / 397.6 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.085e-05/0.3468, allocations: 21.75 kB / 397.6 MB, free: 42.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001062/0.3478, allocations: 0.9659 MB / 398.6 MB, free: 42.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3478, allocations: 1.094 kB / 398.6 MB, free: 42.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009186/0.3488, allocations: 338.4 kB / 398.9 MB, free: 42.03 MB / 318.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.0006802/0.3495, allocations: 0.5758 MB / 399.5 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.3506, allocations: 0.5108 MB / 400 MB, free: 41.53 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3506, allocations: 0 / 400 MB, free: 41.53 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005474/0.3512, allocations: 286.2 kB / 400.3 MB, free: 41.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008776/0.352, allocations: 254.9 kB / 400.5 MB, free: 41.24 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002797/0.3549, allocations: 2.636 MB / 403.1 MB, free: 39.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004275/0.3553, allocations: 1.153 MB / 404.3 MB, free: 38.1 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005805/0.3559, allocations: 199.8 kB / 404.5 MB, free: 37.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.356, allocations: 91.42 kB / 404.6 MB, free: 37.81 MB / 318.1 MB Notification: Performance of SimCode: time 9.41e-07/0.356, allocations: 0 / 404.6 MB, free: 37.81 MB / 318.1 MB Notification: Performance of Templates: time 0.02539/0.3814, allocations: 19.08 MB / 423.7 MB, free: 18.75 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)