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.0009574/0.0009574, allocations: 90.67 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.7 MB / 247.5 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002579/0.000258, allocations: 8 kB / 308.4 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.09736, allocations: 51.53 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004125/0.1015, allocations: 3.335 MB / 363.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002767/0.1043, allocations: 1.348 MB / 364.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005651/0.1049, allocations: 11.94 kB / 364.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003176/0.1053, allocations: 59.42 kB / 364.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006948/0.106, allocations: 115.1 kB / 364.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.107, allocations: 419 kB / 365.2 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001081/0.1081, allocations: 0.822 MB / 366 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006257/0.1088, allocations: 365.9 kB / 366.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004993/0.1093, allocations: 242.7 kB / 366.6 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004638/0.1097, allocations: 294.2 kB / 366.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.1099, allocations: 28 kB / 366.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.11, allocations: 32 kB / 366.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.1102, allocations: 119.4 kB / 367.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005049/0.1107, allocations: 347.6 kB / 367.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000854/0.1116, allocations: 0.7679 MB / 368.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1116, allocations: 0 / 368.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1116, allocations: 0 / 368.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.435e-05/0.1116, allocations: 0 / 368.2 MB, free: 4.992 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.002106/0.1137, allocations: 0.9318 MB / 369.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1138, allocations: 12.03 kB / 369.1 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008038/0.1146, allocations: 163.8 kB / 369.3 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.1158, allocations: 0.6725 MB / 369.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.347e-05/0.1159, allocations: 45.69 kB / 370 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.116, allocations: 60.38 kB / 370.1 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.1174, allocations: 0.6841 MB / 370.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.1175, allocations: 3.938 kB / 370.7 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.931e-05/0.1176, allocations: 27.98 kB / 370.8 MB, free: 2.293 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.1176, allocations: 12 kB / 370.8 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.1189, allocations: 0.5361 MB / 371.3 MB, free: 1.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1952/0.3141, allocations: 1.942 MB / 373.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.3155, allocations: 0.5207 MB / 373.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006112/0.3161, allocations: 235.6 kB / 374 MB, free: 18.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.067e-05/0.3162, allocations: 7.391 kB / 374 MB, free: 18.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009309/0.3171, allocations: 414.3 kB / 374.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 2.935e-06/0.3172, allocations: 0.75 kB / 374.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.00205/0.3192, allocations: 0.7964 MB / 375.2 MB, free: 18.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.3193, allocations: 118.7 kB / 375.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007063/0.32, allocations: 493.5 kB / 375.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.3201, allocations: 39.81 kB / 375.9 MB, free: 17.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000215/0.3203, allocations: 342.1 kB / 376.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.3204, allocations: 163 kB / 376.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.672e-05/0.3205, allocations: 65.38 kB / 376.4 MB, free: 17.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3206, allocations: 375.2 kB / 376.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005124/0.3211, allocations: 220.1 kB / 377 MB, free: 17.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005968/0.3218, allocations: 449 kB / 377.4 MB, free: 17.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.3228, allocations: 0.6562 MB / 378.1 MB, free: 16.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3228, allocations: 2.594 kB / 378.1 MB, free: 16.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001339/0.3241, allocations: 0.7202 MB / 378.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.3243, allocations: 282.5 kB / 379.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.3243, allocations: 12 kB / 379.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.3243, allocations: 10.5 kB / 379.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/0.3249, allocations: 141.2 kB / 379.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.096e-05/0.3249, allocations: 18.34 kB / 379.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.3253, allocations: 97.92 kB / 379.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.867e-05/0.3254, allocations: 33.2 kB / 379.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.875e-06/0.3254, allocations: 3.375 kB / 379.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001055/0.3265, allocations: 0.5798 MB / 380 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3265, allocations: 7.375 kB / 380 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.3265, allocations: 14.61 kB / 380 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004372/0.3269, allocations: 129.5 kB / 380.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.327, allocations: 18.64 kB / 380.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000344/0.3273, allocations: 76.72 kB / 380.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-05/0.3274, allocations: 31.17 kB / 380.2 MB, free: 15.64 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.0003393/0.3277, allocations: 319.6 kB / 380.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.424e-05/0.3278, allocations: 57.5 kB / 380.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.3291, allocations: 0.6404 MB / 381.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3291, allocations: 8.969 kB / 381.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3291, allocations: 0.5156 kB / 381.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.3291, allocations: 4.016 kB / 381.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007663/0.3299, allocations: 0.6399 MB / 381.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3299, allocations: 0 / 381.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004383/0.3303, allocations: 104.8 kB / 382 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3304, allocations: 2.625 kB / 382 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.306e-05/0.3304, allocations: 16.92 kB / 382 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3304, allocations: 5.25 kB / 382 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-05/0.3304, allocations: 1.312 kB / 382 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.3324, allocations: 0.9348 MB / 383 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.008e-05/0.3325, allocations: 140.5 kB / 383.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.999e-05/0.3326, allocations: 13.83 kB / 383.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003377/0.3329, allocations: 59.81 kB / 383.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.333, allocations: 42.69 kB / 383.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.3331, allocations: 21.45 kB / 383.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003891/0.3335, allocations: 335.6 kB / 383.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3335, allocations: 5.125 kB / 383.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007932/0.3343, allocations: 251 kB / 383.8 MB, free: 13.91 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.0001663/0.3345, allocations: 133.4 kB / 383.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.3362, allocations: 0.8779 MB / 384.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3363, allocations: 4.125 kB / 384.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005915/0.3369, allocations: 298.9 kB / 385.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000494/0.3374, allocations: 83.03 kB / 385.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.3395, allocations: 1.532 MB / 386.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.3399, allocations: 0.9134 MB / 387.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.3401, allocations: 57.84 kB / 387.7 MB, free: 11.72 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3401, allocations: 1.438 kB / 387.7 MB, free: 11.72 MB / 302.1 MB Notification: Performance of Templates: time 0.0112/0.3513, allocations: 8.13 MB / 395.8 MB, free: 8.461 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)