Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009769/0.0009769, allocations: 182.7 kB / 18.04 MB, free: 3.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.281/1.281, allocations: 205.4 MB / 224.2 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008442/0.0008442, allocations: 82.42 kB / 272.5 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.000273, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1969/0.1972, allocations: 47.58 MB / 377 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09496/0.2922, allocations: 79.74 MB / 456.8 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.2924, allocations: 67.97 kB / 456.8 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0382/0.3306, allocations: 10.26 MB / 467.1 MB, free: 6.453 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3307, allocations: 4 kB / 467.1 MB, free: 6.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.388e-05/0.3308, allocations: 20.16 kB / 467.1 MB, free: 6.43 MB / 346.7 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.002734/0.3335, allocations: 0.9099 MB / 468 MB, free: 5.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3336, allocations: 8.031 kB / 468 MB, free: 5.449 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003214/0.3339, allocations: 84 kB / 468.1 MB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.3351, allocations: 0.5456 MB / 468.6 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.088e-05/0.3352, allocations: 41.69 kB / 468.7 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.3354, allocations: 60.38 kB / 468.7 MB, free: 4.684 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.3374, allocations: 0.6682 MB / 469.4 MB, free: 3.996 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.361e-05/0.3375, allocations: 4.188 kB / 469.4 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.339e-05/0.3376, allocations: 23.94 kB / 469.4 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.185e-05/0.3376, allocations: 12 kB / 469.5 MB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.3395, allocations: 0.5427 MB / 470 MB, free: 3.414 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004652/0.3442, allocations: 1.94 MB / 471.9 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00155/0.3457, allocations: 0.5251 MB / 472.5 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007306/0.3465, allocations: 238.1 kB / 472.7 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.1e-05/0.3465, allocations: 12.41 kB / 472.7 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001078/0.3476, allocations: 410.3 kB / 473.1 MB, free: 220 kB / 346.7 MB Notification: Performance of pre-optimization done (n=53): time 3.015e-06/0.3477, allocations: 0 / 473.1 MB, free: 220 kB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.002537/0.3502, allocations: 0.7991 MB / 473.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/0.3503, allocations: 115.2 kB / 474 MB, free: 15.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008301/0.3512, allocations: 469.8 kB / 474.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.998e-05/0.3513, allocations: 45.7 kB / 474.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003575/0.3516, allocations: 312.4 kB / 474.8 MB, free: 14.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/0.3519, allocations: 161.8 kB / 475 MB, free: 14.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.3519, allocations: 8 kB / 475 MB, free: 14.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.3521, allocations: 370.7 kB / 475.4 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007555/0.3529, allocations: 233.2 kB / 475.6 MB, free: 13.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009309/0.3539, allocations: 445 kB / 476 MB, free: 13.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.3556, allocations: 0.6638 MB / 476.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.3556, allocations: 7.938 kB / 476.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002189/0.3578, allocations: 0.7282 MB / 477.4 MB, free: 11.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002585/0.3581, allocations: 277.3 kB / 477.7 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.3581, allocations: 12 kB / 477.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.978e-05/0.3581, allocations: 12 kB / 477.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007729/0.3589, allocations: 143.7 kB / 477.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.391e-05/0.359, allocations: 15.92 kB / 477.9 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006745/0.3596, allocations: 95.44 kB / 478 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.397e-05/0.3597, allocations: 31.98 kB / 478 MB, free: 10.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.938e-06/0.3597, allocations: 4 kB / 478 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001583/0.3613, allocations: 0.5908 MB / 478.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3614, allocations: 8.438 kB / 478.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3614, allocations: 12 kB / 478.6 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006443/0.362, allocations: 135.7 kB / 478.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584e-05/0.3621, allocations: 8 kB / 478.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006296/0.3627, allocations: 79.59 kB / 478.8 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/0.3628, allocations: 24 kB / 478.9 MB, free: 10.13 MB / 362.7 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,$PRE.thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean2.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006046/0.3634, allocations: 319 kB / 479.2 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.3635, allocations: 55.25 kB / 479.2 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/0.3655, allocations: 0.619 MB / 479.8 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.3655, allocations: 8 kB / 479.8 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.3656, allocations: 4 kB / 479.8 MB, free: 9.121 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.3656, allocations: 3.984 kB / 479.9 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000989/0.3666, allocations: 0.6302 MB / 480.5 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3666, allocations: 0 / 480.5 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006674/0.3673, allocations: 95.88 kB / 480.6 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.3673, allocations: 8 kB / 480.6 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.216e-05/0.3674, allocations: 15.98 kB / 480.6 MB, free: 8.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.301e-06/0.3674, allocations: 3.984 kB / 480.6 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3674, allocations: 0 / 480.6 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.3693, allocations: 0.9413 MB / 481.5 MB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.3694, allocations: 136.4 kB / 481.7 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.683e-05/0.3695, allocations: 12 kB / 481.7 MB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.3698, allocations: 55.95 kB / 481.7 MB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.3699, allocations: 44.38 kB / 481.8 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-05/0.37, allocations: 20.11 kB / 481.8 MB, free: 7.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000354/0.3703, allocations: 318.8 kB / 482.1 MB, free: 6.762 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3703, allocations: 4 kB / 482.1 MB, free: 6.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007613/0.3711, allocations: 239.1 kB / 482.4 MB, free: 6.523 MB / 362.7 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: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2) * 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 (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001864/0.3713, allocations: 147.4 kB / 482.5 MB, free: 6.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.373, allocations: 0.8861 MB / 483.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.373, allocations: 0 / 483.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005184/0.3736, allocations: 286.6 kB / 483.7 MB, free: 5.203 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.374, allocations: 100.2 kB / 483.8 MB, free: 5.109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002231/0.3763, allocations: 1.339 MB / 485.1 MB, free: 3.742 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.3768, allocations: 0.896 MB / 486 MB, free: 2.816 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000462/0.3773, allocations: 96.5 kB / 486.1 MB, free: 2.723 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.3774, allocations: 47.42 kB / 486.1 MB, free: 2.676 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3774, allocations: 0 / 486.1 MB, free: 2.676 MB / 362.7 MB Notification: Performance of Templates: time 0.01019/0.3876, allocations: 5.433 MB / 491.6 MB, free: 13.25 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches