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.001646/0.001646, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002016/0.002016, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.39/1.39, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001398/0.001398, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1991, allocations: 46.63 MB / 325.3 MB, free: 2.102 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008261/0.2074, allocations: 7.721 MB / 333 MB, free: 11.87 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02082/0.2283, allocations: 18.51 MB / 351.5 MB, free: 9.781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.2295, allocations: 35.69 kB / 351.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002417/0.2319, allocations: 0.8219 MB / 352.4 MB, free: 8.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006115/0.2381, allocations: 1.766 MB / 354.2 MB, free: 7.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003799/0.2419, allocations: 1.303 MB / 355.5 MB, free: 5.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004666/0.2466, allocations: 3.171 MB / 358.6 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003544/0.2469, allocations: 220.6 kB / 358.9 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005547/0.2475, allocations: 0.4976 MB / 359.3 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005395/0.248, allocations: 0.5474 MB / 359.9 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.2482, allocations: 44 kB / 359.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003134/0.2513, allocations: 1.128 MB / 361.1 MB, free: 196 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001632/0.2515, allocations: 170.8 kB / 361.2 MB, free: 24 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006173/0.2521, allocations: 0.6832 MB / 361.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003036/0.2551, allocations: 2.219 MB / 364.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2552, allocations: 0 / 364.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2552, allocations: 0 / 364.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.2552, allocations: 0 / 364.1 MB, free: 13.11 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.002837/0.258, allocations: 2.02 MB / 366.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2581, allocations: 12.03 kB / 366.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000217/0.2583, allocations: 189.7 kB / 366.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/0.2601, allocations: 1.377 MB / 367.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.146e-05/0.2601, allocations: 20.56 kB / 367.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.738e-05/0.2602, allocations: 27.91 kB / 367.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009504/0.2612, allocations: 437.1 kB / 368.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.2612, allocations: 0 / 368.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.503e-05/0.2613, allocations: 12 kB / 368.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.2613, allocations: 12 kB / 368.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.2623, allocations: 474.1 kB / 368.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.2649, allocations: 1.619 MB / 370.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009448/0.2659, allocations: 375.3 kB / 370.7 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007199/0.2666, allocations: 401.9 kB / 371.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01516/0.2818, allocations: 15.24 MB / 386.3 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000654/0.2825, allocations: 259.1 kB / 386.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.425e-06/0.2825, allocations: 0 / 386.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002198/0.2847, allocations: 0.8446 MB / 387.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.2848, allocations: 67.39 kB / 387.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001726/0.2865, allocations: 1.456 MB / 388.9 MB, free: 1.922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.664e-05/0.2866, allocations: 33.7 kB / 389 MB, free: 1.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005699/0.2871, allocations: 0.7227 MB / 389.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.31e-05/0.2872, allocations: 102.7 kB / 389.8 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.2874, allocations: 126 kB / 389.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.2875, allocations: 326 kB / 390.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004502/0.288, allocations: 165 kB / 390.4 MB, free: 448 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005939/0.2886, allocations: 359.4 kB / 390.7 MB, free: 16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.2897, allocations: 0.5254 MB / 391.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2897, allocations: 7.938 kB / 391.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001478/0.2912, allocations: 0.7588 MB / 392 MB, free: 14.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.2912, allocations: 4 kB / 392 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.687e-05/0.2913, allocations: 44 kB / 392.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003271/0.2916, allocations: 137.4 kB / 392.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004143/0.292, allocations: 107.8 kB / 392.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006766/0.2927, allocations: 0.681 MB / 393 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005837/0.2933, allocations: 67.5 kB / 393.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.46e-05/0.2934, allocations: 40.06 kB / 393.1 MB, free: 13.5 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.0004156/0.2938, allocations: 269.7 kB / 393.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002591/0.2941, allocations: 185.8 kB / 393.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.2961, allocations: 0.7471 MB / 394.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.2961, allocations: 4 kB / 394.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2961, allocations: 64 / 394.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.2961, allocations: 4 kB / 394.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.2983, allocations: 1.326 MB / 395.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-05/0.2984, allocations: 36 kB / 395.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.2986, allocations: 47.94 kB / 395.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002331/0.2989, allocations: 124.8 kB / 395.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.2989, allocations: 23.98 kB / 395.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005383/0.2994, allocations: 0.6656 MB / 396.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2995, allocations: 3.938 kB / 396.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.3007, allocations: 0.7127 MB / 397.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.3011, allocations: 282.7 kB / 397.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.3013, allocations: 11.98 kB / 397.5 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004258/0.3017, allocations: 35.91 kB / 397.6 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.3018, allocations: 39.95 kB / 397.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.116e-05/0.3019, allocations: 20 kB / 397.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00113/0.303, allocations: 0.9692 MB / 398.6 MB, free: 7.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.303, allocations: 0 / 398.6 MB, free: 7.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008458/0.3039, allocations: 323.8 kB / 398.9 MB, free: 7.504 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.0007996/0.3047, allocations: 0.5778 MB / 399.5 MB, free: 6.918 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.306, allocations: 0.5161 MB / 400 MB, free: 6.391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.306, allocations: 0 / 400 MB, free: 6.391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006542/0.3067, allocations: 295.2 kB / 400.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009517/0.3077, allocations: 267.2 kB / 400.6 MB, free: 5.824 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004016/0.3117, allocations: 2.265 MB / 402.8 MB, free: 3.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007039/0.3124, allocations: 1.153 MB / 404 MB, free: 2.336 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000692/0.3131, allocations: 199.9 kB / 404.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.3133, allocations: 87.44 kB / 404.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3133, allocations: 0 / 404.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of Templates: time 0.03225/0.3455, allocations: 19.81 MB / 424.1 MB, free: 14.22 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)