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.001142/0.001142, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002184/0.002184, allocations: 196.5 kB / 16.14 MB, free: 6.707 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.368/1.368, allocations: 205.1 MB / 222 MB, free: 4.777 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.001122/0.001122, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.223, allocations: 46.63 MB / 324.7 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008162/0.2312, allocations: 7.69 MB / 332.4 MB, free: 11.74 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02171/0.2529, allocations: 18.68 MB / 351 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001524/0.2545, allocations: 31.75 kB / 351.1 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002403/0.2569, allocations: 0.737 MB / 351.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005376/0.2623, allocations: 1.465 MB / 353.3 MB, free: 7.445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003667/0.266, allocations: 1.078 MB / 354.4 MB, free: 6.359 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005188/0.2712, allocations: 3.132 MB / 357.5 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003637/0.2716, allocations: 201.1 kB / 357.7 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000647/0.2723, allocations: 493.5 kB / 358.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005251/0.2728, allocations: 0.5435 MB / 358.7 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.433e-05/0.2729, allocations: 28 kB / 358.7 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003554/0.2765, allocations: 1.101 MB / 359.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001728/0.2766, allocations: 162.8 kB / 360 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006766/0.2773, allocations: 0.6676 MB / 360.7 MB, free: 12 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003469/0.2808, allocations: 2.176 MB / 362.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.2808, allocations: 0 / 362.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2809, allocations: 3.938 kB / 362.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.868e-05/0.2809, allocations: 0 / 362.8 MB, free: 13.82 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.003513/0.2844, allocations: 2.024 MB / 364.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.2845, allocations: 8.031 kB / 364.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000239/0.2847, allocations: 197.6 kB / 365.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.2866, allocations: 1.366 MB / 366.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.2867, allocations: 20.55 kB / 366.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-05/0.2868, allocations: 35.91 kB / 366.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009024/0.2877, allocations: 421.2 kB / 366.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.2877, allocations: 11.88 kB / 366.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.536e-05/0.2877, allocations: 11.98 kB / 366.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.2878, allocations: 15.98 kB / 366.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.2889, allocations: 474.1 kB / 367.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.2918, allocations: 1.615 MB / 369 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009863/0.2928, allocations: 375.3 kB / 369.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007108/0.2935, allocations: 409.9 kB / 369.8 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01449/0.308, allocations: 15.23 MB / 385 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006127/0.3086, allocations: 267 kB / 385.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.044e-06/0.3087, allocations: 0 / 385.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001954/0.3106, allocations: 0.8453 MB / 386.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.3107, allocations: 55.41 kB / 386.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/0.3124, allocations: 1.464 MB / 387.6 MB, free: 2.637 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.3124, allocations: 33.7 kB / 387.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005753/0.313, allocations: 0.7188 MB / 388.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.077e-05/0.3131, allocations: 98.72 kB / 388.5 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.3133, allocations: 126 kB / 388.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.3134, allocations: 330 kB / 388.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004327/0.3138, allocations: 157 kB / 389.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005768/0.3144, allocations: 367.4 kB / 389.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009674/0.3154, allocations: 0.5372 MB / 390 MB, free: 88 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.3154, allocations: 0 / 390 MB, free: 88 kB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001398/0.3168, allocations: 0.7507 MB / 390.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.3168, allocations: 8 kB / 390.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.319e-05/0.3169, allocations: 44.84 kB / 390.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002983/0.3172, allocations: 132.8 kB / 390.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004065/0.3176, allocations: 111.7 kB / 391 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005874/0.3182, allocations: 0.6889 MB / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005334/0.3188, allocations: 67.56 kB / 391.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.958e-05/0.3188, allocations: 36 kB / 391.8 MB, free: 14.21 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.0004132/0.3193, allocations: 269.7 kB / 392.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.3195, allocations: 185.8 kB / 392.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.3214, allocations: 0.7502 MB / 393 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3214, allocations: 7.984 kB / 393 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3215, allocations: 4 kB / 393 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3215, allocations: 0 / 393 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/0.3235, allocations: 1.319 MB / 394.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.567e-05/0.3236, allocations: 36 kB / 394.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.3238, allocations: 43.94 kB / 394.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002449/0.3241, allocations: 124.9 kB / 394.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.833e-05/0.3241, allocations: 27.92 kB / 394.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005139/0.3246, allocations: 0.6655 MB / 395.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3246, allocations: 4.031 kB / 395.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.3259, allocations: 0.7163 MB / 395.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004179/0.3263, allocations: 290.5 kB / 396.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.3265, allocations: 15.92 kB / 396.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/0.3269, allocations: 19.97 kB / 396.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.327, allocations: 43.95 kB / 396.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.3271, allocations: 19.94 kB / 396.3 MB, free: 9.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001157/0.3283, allocations: 0.9692 MB / 397.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3283, allocations: 0 / 397.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008973/0.3292, allocations: 335.8 kB / 397.6 MB, free: 8.203 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.0008095/0.33, allocations: 0.5662 MB / 398.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.3313, allocations: 0.5122 MB / 398.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3313, allocations: 0 / 398.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006496/0.3319, allocations: 291.2 kB / 399 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009575/0.3329, allocations: 251.1 kB / 399.2 MB, free: 6.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.3363, allocations: 2.639 MB / 401.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005822/0.3369, allocations: 1.157 MB / 403 MB, free: 2.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006147/0.3376, allocations: 199.9 kB / 403.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.3377, allocations: 83.44 kB / 403.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of SimCode: time 2.425e-06/0.3377, allocations: 0 / 403.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of Templates: time 0.03031/0.368, allocations: 19.07 MB / 422.4 MB, free: 15.32 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)