Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.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.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|thd1.harmonic.mean1.x|thd1.harmonic.mean2.x|thd1.rootMeanSquare.mean.x|thdRMS.harmonic.mean1.x|thdRMS.harmonic.mean2.x|thdRMS.rootMeanSquare.mean.x",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|thd1.harmonic.mean1.x|thd1.harmonic.mean2.x|thd1.rootMeanSquare.mean.x|thdRMS.harmonic.mean1.x|thdRMS.harmonic.mean2.x|thdRMS.rootMeanSquare.mean.x",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001798/0.001798, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001899/0.001899, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 247.1 MB, free: 9 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 68.81 kB / 307.1 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1149, allocations: 50.53 MB / 357.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.007465/0.1224, allocations: 3.748 MB / 361.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004186/0.1267, allocations: 1.352 MB / 362.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.1279, allocations: 19.88 kB / 362.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005197/0.1285, allocations: 51.42 kB / 362.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009653/0.1295, allocations: 115.1 kB / 363 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.1308, allocations: 419.6 kB / 363.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001454/0.1323, allocations: 0.9 MB / 364.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007478/0.1331, allocations: 389.8 kB / 364.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007069/0.1338, allocations: 350.6 kB / 365 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006663/0.1345, allocations: 366.2 kB / 365.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.1347, allocations: 100 kB / 365.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002284/0.1349, allocations: 112 kB / 365.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.1351, allocations: 211.3 kB / 365.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004485/0.1356, allocations: 413.9 kB / 366.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009649/0.1365, allocations: 0.8073 MB / 367 MB, free: 4.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1365, allocations: 0 / 367 MB, free: 4.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1366, allocations: 0 / 367 MB, free: 4.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.1366, allocations: 4 kB / 367 MB, free: 4.809 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: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.00231/0.1389, allocations: 1.076 MB / 368 MB, free: 3.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.139, allocations: 12.03 kB / 368.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006991/0.1397, allocations: 143.8 kB / 368.2 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.1409, allocations: 0.6608 MB / 368.9 MB, free: 2.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.466e-05/0.1409, allocations: 45.69 kB / 368.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.1411, allocations: 60.38 kB / 369 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.1425, allocations: 0.6528 MB / 369.6 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.1425, allocations: 8 kB / 369.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.914e-05/0.1426, allocations: 31.97 kB / 369.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.1426, allocations: 16 kB / 369.7 MB, free: 2.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.1438, allocations: 0.4892 MB / 370.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1921/0.3359, allocations: 1.914 MB / 372.1 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.337, allocations: 496.5 kB / 372.6 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000493/0.3375, allocations: 217.9 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.405e-05/0.3376, allocations: 10.73 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000868/0.3385, allocations: 385.3 kB / 373.2 MB, free: 18.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 3.346e-06/0.3385, allocations: 0 / 373.2 MB, free: 18.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.001788/0.3403, allocations: 0.7279 MB / 373.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/0.3404, allocations: 117.7 kB / 374 MB, free: 18.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006189/0.341, allocations: 498.1 kB / 374.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.409e-05/0.3411, allocations: 43.02 kB / 374.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.3413, allocations: 340 kB / 374.9 MB, free: 18.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.3415, allocations: 163.8 kB / 375 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.3417, allocations: 125.8 kB / 375.1 MB, free: 18.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3418, allocations: 371.4 kB / 375.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004849/0.3423, allocations: 212 kB / 375.7 MB, free: 17.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005653/0.3429, allocations: 415.4 kB / 376.1 MB, free: 17.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009319/0.3438, allocations: 0.62 MB / 376.7 MB, free: 17.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3438, allocations: 8.469 kB / 376.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001275/0.3451, allocations: 0.6794 MB / 377.4 MB, free: 16.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3451, allocations: 7.562 kB / 377.4 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.3451, allocations: 12.7 kB / 377.5 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.3452, allocations: 11.56 kB / 377.5 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005447/0.3457, allocations: 131.8 kB / 377.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.3457, allocations: 15.7 kB / 377.6 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000412/0.3462, allocations: 77.34 kB / 377.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.31e-05/0.3462, allocations: 30.02 kB / 377.7 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005317/0.3468, allocations: 349.1 kB / 378.1 MB, free: 16.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004374/0.3472, allocations: 392.1 kB / 378.4 MB, free: 16.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007742/0.348, allocations: 0.5803 MB / 379 MB, free: 15.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.997e-06/0.348, allocations: 1.438 kB / 379 MB, free: 15.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001137/0.3491, allocations: 0.6344 MB / 379.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3492, allocations: 8.062 kB / 379.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3492, allocations: 6.781 kB / 379.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.3492, allocations: 10.16 kB / 379.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004575/0.3497, allocations: 126.1 kB / 379.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.3497, allocations: 16.2 kB / 379.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/0.3501, allocations: 75.19 kB / 379.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/0.3501, allocations: 26.84 kB / 379.9 MB, free: 15.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thdRMS.pythagoras.valid,thdRMS.valid,thdRMS.greaterThreshold.y,thdRMS.rootMeanSquare.mean.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean1.y_last,thd1.pythagoras.valid,thd1.valid,thd1.greaterThreshold.y,thd1.rootMeanSquare.mean.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean1.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002322/0.3504, allocations: 241.7 kB / 380.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.102e-05/0.3505, allocations: 57.89 kB / 380.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.3517, allocations: 0.5885 MB / 380.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.3517, allocations: 9.984 kB / 380.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3517, allocations: 7.938 kB / 380.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.158e-06/0.3518, allocations: 2.578 kB / 380.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007358/0.3525, allocations: 0.6512 MB / 381.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3525, allocations: 1.375 kB / 381.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004453/0.353, allocations: 91.52 kB / 381.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.353, allocations: 1.344 kB / 381.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.353, allocations: 17.33 kB / 381.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.353, allocations: 1.875 kB / 381.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.353, allocations: 0.75 kB / 381.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.3548, allocations: 0.8809 MB / 382.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.3549, allocations: 135.6 kB / 382.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.73e-05/0.355, allocations: 17.36 kB / 382.6 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003293/0.3554, allocations: 39.89 kB / 382.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.3555, allocations: 42.31 kB / 382.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.3555, allocations: 21.06 kB / 382.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004419/0.356, allocations: 344.2 kB / 383 MB, free: 13.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.356, allocations: 0 / 383 MB, free: 13.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009455/0.3569, allocations: 239.7 kB / 383.3 MB, free: 13.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x) * Number of discrete variables: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid) * Number of discrete states: 6 (thdRMS.rootMeanSquare.mean.x,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean1.x,thd1.rootMeanSquare.mean.x,thd1.harmonic.mean2.x,thd1.harmonic.mean1.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001698/0.3571, allocations: 134.3 kB / 383.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.3592, allocations: 0.8629 MB / 384.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.3592, allocations: 1.094 kB / 384.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000572/0.3598, allocations: 284.7 kB / 384.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005021/0.3603, allocations: 89.86 kB / 384.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.3626, allocations: 1.5 MB / 386.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/0.363, allocations: 0.9131 MB / 387.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.3632, allocations: 64.23 kB / 387.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3632, allocations: 1.438 kB / 387.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Templates: time 0.01379/0.377, allocations: 8.241 MB / 395.4 MB, free: 8.16 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)