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.001278/0.001278, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 65.61 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1024, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008131/0.1106, allocations: 8.031 MB / 366.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2116/0.3223, allocations: 19.46 MB / 386.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.3235, allocations: 62.5 kB / 386.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002373/0.326, allocations: 0.85 MB / 387.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005631/0.3316, allocations: 1.805 MB / 389.1 MB, free: 4.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005654/0.3373, allocations: 1.332 MB / 390.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005657/0.3429, allocations: 3.301 MB / 393.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003773/0.3434, allocations: 223 kB / 393.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007778/0.3441, allocations: 0.5546 MB / 394.5 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005544/0.3447, allocations: 0.5599 MB / 395.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.492e-05/0.3448, allocations: 41.78 kB / 395.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004168/0.349, allocations: 1.443 MB / 396.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.3492, allocations: 176.4 kB / 396.7 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006221/0.3498, allocations: 0.6715 MB / 397.4 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002963/0.3528, allocations: 2.217 MB / 399.6 MB, free: 15.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3528, allocations: 0 / 399.6 MB, free: 15.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.3528, allocations: 0 / 399.6 MB, free: 15.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.3528, allocations: 0 / 399.6 MB, free: 15.57 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.003213/0.356, allocations: 2.011 MB / 401.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.3561, allocations: 9.656 kB / 401.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002399/0.3563, allocations: 195.7 kB / 401.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001932/0.3583, allocations: 1.348 MB / 403.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.3583, allocations: 22.3 kB / 403.2 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.49e-05/0.3584, allocations: 29.53 kB / 403.2 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008421/0.3592, allocations: 432 kB / 403.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3593, allocations: 0 / 403.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.015e-05/0.3593, allocations: 12.38 kB / 403.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.3593, allocations: 10.78 kB / 403.7 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009684/0.3603, allocations: 475.7 kB / 404.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002769/0.3631, allocations: 1.617 MB / 405.7 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000831/0.3639, allocations: 371.4 kB / 406.1 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006413/0.3646, allocations: 418.5 kB / 406.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/0.3797, allocations: 15.52 MB / 422 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006611/0.3804, allocations: 260.2 kB / 422.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.074e-06/0.3804, allocations: 0 / 422.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001983/0.3824, allocations: 0.8485 MB / 423.1 MB, free: 8.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.3825, allocations: 59.41 kB / 423.2 MB, free: 8.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.3842, allocations: 1.451 MB / 424.6 MB, free: 6.781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.3842, allocations: 37.7 kB / 424.7 MB, free: 6.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005881/0.3848, allocations: 0.7187 MB / 425.4 MB, free: 6.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.692e-05/0.3849, allocations: 94.73 kB / 425.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.3851, allocations: 130 kB / 425.6 MB, free: 5.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3852, allocations: 325.9 kB / 425.9 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004241/0.3857, allocations: 153 kB / 426.1 MB, free: 5.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005323/0.3862, allocations: 359.4 kB / 426.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000951/0.3872, allocations: 0.5373 MB / 427 MB, free: 4.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3872, allocations: 3.938 kB / 427 MB, free: 4.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001383/0.3886, allocations: 0.7552 MB / 427.7 MB, free: 3.473 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.3886, allocations: 11.94 kB / 427.7 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.145e-05/0.3887, allocations: 43.92 kB / 427.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000336/0.389, allocations: 128.8 kB / 427.9 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004228/0.3895, allocations: 112.1 kB / 428 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006172/0.3901, allocations: 0.6838 MB / 428.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006355/0.3907, allocations: 67.5 kB / 428.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.04e-05/0.3908, allocations: 32 kB / 428.8 MB, free: 2.375 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.0003449/0.3912, allocations: 289.2 kB / 429.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/0.3913, allocations: 185.8 kB / 429.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.393, allocations: 0.7451 MB / 430 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.393, allocations: 0 / 430 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.393, allocations: 4 kB / 430 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.393, allocations: 0 / 430 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/0.3951, allocations: 1.308 MB / 431.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.408e-05/0.3952, allocations: 35.98 kB / 431.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.3954, allocations: 48.02 kB / 431.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002185/0.3957, allocations: 120.8 kB / 431.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.3957, allocations: 19.98 kB / 431.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005612/0.3963, allocations: 0.6819 MB / 432.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3963, allocations: 4.062 kB / 432.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.3976, allocations: 0.7098 MB / 432.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004946/0.3981, allocations: 274.8 kB / 433.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/0.3983, allocations: 11.98 kB / 433.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004184/0.3987, allocations: 19.97 kB / 433.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.3988, allocations: 43.95 kB / 433.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.077e-05/0.3989, allocations: 26 kB / 433.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001175/0.4, allocations: 0.9571 MB / 434.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4, allocations: 3.938 kB / 434.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008586/0.4009, allocations: 335.8 kB / 434.6 MB, free: 12.4 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.0007777/0.4017, allocations: 0.5656 MB / 435.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.4029, allocations: 0.5124 MB / 435.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4029, allocations: 4 kB / 435.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000602/0.4035, allocations: 296.1 kB / 436 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.4047, allocations: 317.2 kB / 436.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.4077, allocations: 2.198 MB / 438.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006043/0.4083, allocations: 1.153 MB / 439.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004656/0.4088, allocations: 199.8 kB / 439.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.409, allocations: 91.44 kB / 439.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of SimCode: time 1.693e-06/0.409, allocations: 0 / 439.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of Templates: time 0.03015/0.4391, allocations: 19.78 MB / 459.7 MB, free: 3.293 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 gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)