Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 59.09 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1139, allocations: 50.55 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009489/0.1234, allocations: 8.026 MB / 366.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2021/0.3256, allocations: 19.45 MB / 386.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.3268, allocations: 58.97 kB / 386.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002377/0.3292, allocations: 0.853 MB / 387.3 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006081/0.3353, allocations: 1.803 MB / 389.1 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006467/0.3418, allocations: 1.337 MB / 390.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005372/0.3472, allocations: 3.302 MB / 393.7 MB, free: 2.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.3476, allocations: 217.4 kB / 393.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007804/0.3484, allocations: 0.5492 MB / 394.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005863/0.349, allocations: 0.563 MB / 395.1 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.636e-05/0.3491, allocations: 41.75 kB / 395.1 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004617/0.3537, allocations: 1.443 MB / 396.5 MB, free: 1.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.3539, allocations: 177.6 kB / 396.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006489/0.3545, allocations: 0.6733 MB / 397.4 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003186/0.3577, allocations: 2.216 MB / 399.6 MB, free: 15.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3577, allocations: 0 / 399.6 MB, free: 15.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3577, allocations: 0 / 399.6 MB, free: 15.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.185e-05/0.3578, allocations: 4 kB / 399.6 MB, free: 15.52 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.003184/0.361, allocations: 2.003 MB / 401.6 MB, free: 13.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.361, allocations: 9.281 kB / 401.6 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/0.3613, allocations: 200.8 kB / 401.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/0.3631, allocations: 1.35 MB / 403.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.3632, allocations: 19.19 kB / 403.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.339e-05/0.3633, allocations: 29.84 kB / 403.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008121/0.3641, allocations: 428.5 kB / 403.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3641, allocations: 3.984 kB / 403.6 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.158e-05/0.3642, allocations: 14.5 kB / 403.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.3642, allocations: 13.25 kB / 403.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009772/0.3652, allocations: 480.6 kB / 404.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002661/0.3678, allocations: 1.617 MB / 405.7 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008276/0.3687, allocations: 370.7 kB / 406.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006752/0.3694, allocations: 422.8 kB / 406.5 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.015/0.3844, allocations: 15.52 MB / 422 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005976/0.385, allocations: 260.2 kB / 422.3 MB, free: 9.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.735e-06/0.385, allocations: 0 / 422.3 MB, free: 9.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001943/0.387, allocations: 0.8446 MB / 423.1 MB, free: 8.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.387, allocations: 63.39 kB / 423.2 MB, free: 8.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.3887, allocations: 1.455 MB / 424.7 MB, free: 6.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.3888, allocations: 29.7 kB / 424.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005901/0.3893, allocations: 0.7187 MB / 425.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.86e-05/0.3894, allocations: 90.73 kB / 425.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.3896, allocations: 130 kB / 425.6 MB, free: 5.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3898, allocations: 329.9 kB / 425.9 MB, free: 5.418 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.3902, allocations: 165 kB / 426.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005377/0.3907, allocations: 359.4 kB / 426.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009207/0.3917, allocations: 0.5332 MB / 427 MB, free: 4.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.3917, allocations: 4 kB / 427 MB, free: 4.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00132/0.393, allocations: 0.751 MB / 427.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.393, allocations: 8 kB / 427.7 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.039e-05/0.3931, allocations: 43.98 kB / 427.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002999/0.3934, allocations: 137.4 kB / 427.9 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.3938, allocations: 107.8 kB / 428 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006093/0.3944, allocations: 0.6772 MB / 428.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007041/0.3952, allocations: 71.56 kB / 428.8 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.403e-05/0.3952, allocations: 39.98 kB / 428.8 MB, free: 2.32 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.0003477/0.3956, allocations: 269.6 kB / 429.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.3958, allocations: 185.8 kB / 429.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.3974, allocations: 0.7526 MB / 430 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.3974, allocations: 4 kB / 430 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3974, allocations: 0 / 430 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.3975, allocations: 3.984 kB / 430 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.3998, allocations: 1.311 MB / 431.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.856e-05/0.3998, allocations: 39.94 kB / 431.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.4001, allocations: 39.95 kB / 431.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002466/0.4003, allocations: 128.8 kB / 431.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.115e-05/0.4004, allocations: 19.94 kB / 431.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005593/0.4009, allocations: 0.6712 MB / 432.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.401, allocations: 4.031 kB / 432.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/0.4021, allocations: 0.7098 MB / 432.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004402/0.4026, allocations: 274.8 kB / 433.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.4027, allocations: 8 kB / 433.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004101/0.4031, allocations: 31.97 kB / 433.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.4033, allocations: 39.95 kB / 433.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.4033, allocations: 20 kB / 433.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.4044, allocations: 0.961 MB / 434.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4044, allocations: 0 / 434.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009378/0.4054, allocations: 331.8 kB / 434.6 MB, free: 12.36 MB / 350.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.0008141/0.4062, allocations: 0.5717 MB / 435.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.4074, allocations: 0.513 MB / 435.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4074, allocations: 4.125 kB / 435.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005955/0.408, allocations: 295.2 kB / 436 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.4092, allocations: 321.2 kB / 436.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003366/0.4126, allocations: 2.202 MB / 438.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006608/0.4133, allocations: 1.153 MB / 439.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005698/0.4139, allocations: 203.9 kB / 439.8 MB, free: 7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.414, allocations: 91.44 kB / 439.9 MB, free: 6.91 MB / 350.1 MB Notification: Performance of SimCode: time 1.132e-06/0.414, allocations: 0 / 439.9 MB, free: 6.91 MB / 350.1 MB Notification: Performance of Templates: time 0.03123/0.4452, allocations: 19.77 MB / 459.7 MB, free: 3.238 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)