Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.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.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, 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.001964/0.001964, allocations: 192.6 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.659/1.659, allocations: 205.1 MB / 222.4 MB, free: 4.562 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.001238/0.001238, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3076, allocations: 46.64 MB / 325.3 MB, free: 2.047 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005306/0.3129, allocations: 3.571 MB / 328.9 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00332/0.3163, allocations: 1.267 MB / 330.1 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006152/0.3169, allocations: 16.41 kB / 330.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003421/0.3173, allocations: 85.42 kB / 330.2 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005281/0.3179, allocations: 132 kB / 330.4 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009698/0.3188, allocations: 382.6 kB / 330.7 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.3199, allocations: 0.844 MB / 331.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006612/0.3206, allocations: 385.2 kB / 332 MB, free: 12.9 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004433/0.321, allocations: 324.6 kB / 332.3 MB, free: 12.69 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004622/0.3215, allocations: 351.4 kB / 332.6 MB, free: 12.42 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001827/0.3217, allocations: 98.91 kB / 332.7 MB, free: 12.42 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/0.3219, allocations: 93.25 kB / 332.8 MB, free: 12.42 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002403/0.3222, allocations: 198 kB / 333 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004529/0.3226, allocations: 384.9 kB / 333.4 MB, free: 11.95 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.3237, allocations: 0.9439 MB / 334.3 MB, free: 11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.3237, allocations: 0 / 334.3 MB, free: 11 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3237, allocations: 0 / 334.3 MB, free: 11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.3237, allocations: 0 / 334.3 MB, free: 11 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002313/0.3261, allocations: 1.017 MB / 335.3 MB, free: 9.93 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.3261, allocations: 8.031 kB / 335.3 MB, free: 9.922 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.3263, allocations: 91.94 kB / 335.4 MB, free: 9.832 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009878/0.3273, allocations: 0.5809 MB / 336 MB, free: 9.211 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-05/0.3273, allocations: 49.69 kB / 336.1 MB, free: 9.164 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3275, allocations: 60.38 kB / 336.1 MB, free: 9.105 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.3287, allocations: 0.6443 MB / 336.8 MB, free: 8.441 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.3287, allocations: 0 / 336.8 MB, free: 8.441 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.297e-05/0.3288, allocations: 24 kB / 336.8 MB, free: 8.418 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.3288, allocations: 12 kB / 336.8 MB, free: 8.406 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.3299, allocations: 495.7 kB / 337.3 MB, free: 7.922 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002985/0.3329, allocations: 1.865 MB / 339.2 MB, free: 5.988 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.3339, allocations: 493.7 kB / 339.6 MB, free: 5.496 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004639/0.3344, allocations: 214.1 kB / 339.8 MB, free: 5.285 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.707e-05/0.3345, allocations: 12.41 kB / 339.9 MB, free: 5.273 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007406/0.3352, allocations: 381.2 kB / 340.2 MB, free: 4.887 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 2.465e-06/0.3352, allocations: 8 kB / 340.2 MB, free: 4.879 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.001684/0.3369, allocations: 0.7287 MB / 341 MB, free: 4.145 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.329e-05/0.337, allocations: 111.2 kB / 341.1 MB, free: 4.008 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000545/0.3376, allocations: 457.8 kB / 341.5 MB, free: 3.547 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.661e-05/0.3377, allocations: 45.69 kB / 341.6 MB, free: 3.496 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.3379, allocations: 316.4 kB / 341.9 MB, free: 3.18 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.3381, allocations: 153.8 kB / 342 MB, free: 3.027 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.3382, allocations: 130.2 kB / 342.2 MB, free: 2.895 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.3384, allocations: 374.7 kB / 342.5 MB, free: 2.52 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004658/0.3389, allocations: 203.4 kB / 342.7 MB, free: 2.32 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006311/0.3395, allocations: 421 kB / 343.1 MB, free: 1.812 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.3406, allocations: 0.6088 MB / 343.7 MB, free: 1.117 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.3407, allocations: 0 / 343.7 MB, free: 1.117 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001292/0.342, allocations: 0.6824 MB / 344.4 MB, free: 440 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.342, allocations: 11.94 kB / 344.4 MB, free: 428 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.342, allocations: 11.94 kB / 344.4 MB, free: 416 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.3421, allocations: 8 kB / 344.5 MB, free: 408 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005362/0.3426, allocations: 143.7 kB / 344.6 MB, free: 264 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.3426, allocations: 8.25 kB / 344.6 MB, free: 256 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004379/0.3431, allocations: 91.27 kB / 344.7 MB, free: 164 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.146e-05/0.3431, allocations: 31.94 kB / 344.7 MB, free: 132 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006463/0.3438, allocations: 337.4 kB / 345 MB, free: 15.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005304/0.3443, allocations: 393.1 kB / 345.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008916/0.3452, allocations: 0.5776 MB / 346 MB, free: 14.65 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.519e-06/0.3452, allocations: 3.984 kB / 346 MB, free: 14.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001094/0.3463, allocations: 0.6189 MB / 346.6 MB, free: 14.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.3464, allocations: 12.16 kB / 346.6 MB, free: 14.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.3464, allocations: 8 kB / 346.7 MB, free: 14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.3464, allocations: 8 kB / 346.7 MB, free: 14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.3468, allocations: 127.7 kB / 346.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.3469, allocations: 19.92 kB / 346.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003666/0.3472, allocations: 63.56 kB / 346.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.3473, allocations: 28 kB / 346.9 MB, free: 13.76 MB / 286.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,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean1.y,thd1.pythagoras.valid,thd1.valid,thd1.greaterThreshold.y,thd1.rootMeanSquare.mean.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.harmonic.mean2.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean1.y) * 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.0003153/0.3476, allocations: 246.2 kB / 347.1 MB, free: 13.51 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.619e-05/0.3477, allocations: 55.33 kB / 347.2 MB, free: 13.46 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.349, allocations: 0.5829 MB / 347.8 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.349, allocations: 4 kB / 347.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.349, allocations: 4 kB / 347.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.349, allocations: 0 / 347.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000701/0.3497, allocations: 0.6418 MB / 348.4 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3497, allocations: 0 / 348.4 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004107/0.3502, allocations: 87.86 kB / 348.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.3502, allocations: 4 kB / 348.5 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/0.3502, allocations: 15.98 kB / 348.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3502, allocations: 0 / 348.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3502, allocations: 0 / 348.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.3519, allocations: 0.8785 MB / 349.4 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.3521, allocations: 132.4 kB / 349.5 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/0.3522, allocations: 16 kB / 349.6 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003102/0.3525, allocations: 39.95 kB / 349.6 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.3526, allocations: 44.5 kB / 349.6 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-05/0.3527, allocations: 27.92 kB / 349.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003894/0.353, allocations: 310.8 kB / 350 MB, free: 10.59 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3531, allocations: 0 / 350 MB, free: 10.59 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007946/0.3539, allocations: 239.1 kB / 350.2 MB, free: 10.36 MB / 286.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,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,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.0001983/0.3541, allocations: 141.1 kB / 350.3 MB, free: 10.21 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.3562, allocations: 0.8632 MB / 351.2 MB, free: 9.359 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.3562, allocations: 7.969 kB / 351.2 MB, free: 9.352 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006109/0.3568, allocations: 267.1 kB / 351.5 MB, free: 9.086 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000539/0.3574, allocations: 82.27 kB / 351.5 MB, free: 9.004 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002412/0.3598, allocations: 1.159 MB / 352.7 MB, free: 7.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.3604, allocations: 0.8997 MB / 353.6 MB, free: 6.891 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004568/0.3608, allocations: 104.6 kB / 353.7 MB, free: 6.789 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.361, allocations: 55.42 kB / 353.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of SimCode: time 5.91e-07/0.361, allocations: 0 / 353.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of Templates: time 0.01379/0.3748, allocations: 5.999 MB / 359.8 MB, free: 0.7305 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)