Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001408/0.001408, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00112/0.001119, allocations: 87.77 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.252e-05/2.232e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3382, allocations: 47.56 MB / 362.3 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.4686, allocations: 78.94 MB / 441.3 MB, free: 7.363 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.4689, allocations: 70.56 kB / 441.3 MB, free: 7.297 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04556/0.5145, allocations: 10.14 MB / 451.5 MB, free: 13.2 MB / 347.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.5146, allocations: 0 / 451.5 MB, free: 13.2 MB / 347.1 MB Notification: Performance of Transformations before backend: time 6.049e-05/0.5146, allocations: 27.94 kB / 451.5 MB, free: 13.17 MB / 347.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.002457/0.5171, allocations: 0.8316 MB / 452.3 MB, free: 12.28 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.5172, allocations: 8.031 kB / 452.4 MB, free: 12.27 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.5174, allocations: 87.02 kB / 452.4 MB, free: 12.19 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.5187, allocations: 0.5158 MB / 453 MB, free: 11.63 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.824e-05/0.5188, allocations: 24 kB / 453 MB, free: 11.61 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.5189, allocations: 39.94 kB / 453 MB, free: 11.57 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001169/0.5201, allocations: 391.8 kB / 453.4 MB, free: 11.18 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.5215, allocations: 0.5097 MB / 453.9 MB, free: 10.66 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.5216, allocations: 11.91 kB / 453.9 MB, free: 10.65 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-05/0.5217, allocations: 0 / 453.9 MB, free: 10.65 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.5217, allocations: 19.95 kB / 453.9 MB, free: 10.63 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005001/0.5267, allocations: 1.837 MB / 455.8 MB, free: 8.738 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.5278, allocations: 400.4 kB / 456.2 MB, free: 8.336 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000412/0.5283, allocations: 162.2 kB / 456.3 MB, free: 8.176 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.882e-05/0.5283, allocations: 12.42 kB / 456.3 MB, free: 8.164 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008469/0.5292, allocations: 324.3 kB / 456.7 MB, free: 7.832 MB / 347.1 MB Notification: Performance of pre-optimization done (n=53): time 4.558e-06/0.5292, allocations: 0 / 456.7 MB, free: 7.832 MB / 347.1 MB Notification: Performance of matching and sorting (n=53): time 0.001282/0.5305, allocations: 443.4 kB / 457.1 MB, free: 7.395 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/0.5306, allocations: 111.2 kB / 457.2 MB, free: 7.262 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006842/0.5313, allocations: 378.6 kB / 457.6 MB, free: 6.887 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 8.256e-05/0.5314, allocations: 33.69 kB / 457.6 MB, free: 6.848 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.5318, allocations: 342.9 kB / 457.9 MB, free: 6.512 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.532, allocations: 157.7 kB / 458.1 MB, free: 6.355 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.532, allocations: 0 / 458.1 MB, free: 6.355 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.5322, allocations: 338.8 kB / 458.4 MB, free: 6.016 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.5326, allocations: 145.5 kB / 458.6 MB, free: 5.871 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006067/0.5333, allocations: 361.9 kB / 458.9 MB, free: 5.426 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005166/0.5338, allocations: 190.6 kB / 459.1 MB, free: 5.242 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.5338, allocations: 4 kB / 459.1 MB, free: 5.238 MB / 347.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001327/0.5351, allocations: 0.4936 MB / 459.6 MB, free: 4.738 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001176/0.5363, allocations: 2.53 MB / 462.1 MB, free: 2.012 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.5364, allocations: 12 kB / 462.1 MB, free: 2 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.721e-05/0.5364, allocations: 8 kB / 462.1 MB, free: 1.992 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.5376, allocations: 147.8 kB / 462.3 MB, free: 1.848 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.344e-05/0.5376, allocations: 19.92 kB / 462.3 MB, free: 1.828 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008033/0.5384, allocations: 80.91 kB / 462.4 MB, free: 1.75 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.15e-05/0.5385, allocations: 27.98 kB / 462.4 MB, free: 1.723 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.789e-06/0.5385, allocations: 4 kB / 462.4 MB, free: 1.719 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001186/0.5397, allocations: 445.1 kB / 462.9 MB, free: 1.289 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.5398, allocations: 8 kB / 462.9 MB, free: 1.281 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.5398, allocations: 20.03 kB / 462.9 MB, free: 1.262 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009103/0.5407, allocations: 127.8 kB / 463 MB, free: 1.137 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.5408, allocations: 15.94 kB / 463 MB, free: 1.121 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005322/0.5413, allocations: 63.5 kB / 463.1 MB, free: 1.059 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-05/0.5414, allocations: 28 kB / 463.1 MB, free: 1.031 MB / 347.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,$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 () * 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.0002707/0.5417, allocations: 147 kB / 463.3 MB, free: 0.8789 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.5419, allocations: 59.3 kB / 463.3 MB, free: 0.8203 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.5432, allocations: 465.7 kB / 463.8 MB, free: 364 kB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.5432, allocations: 4 kB / 463.8 MB, free: 360 kB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.5432, allocations: 0 / 463.8 MB, free: 360 kB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.5433, allocations: 0 / 463.8 MB, free: 360 kB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.5443, allocations: 0.5536 MB / 464.3 MB, free: 15.76 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5443, allocations: 0 / 464.3 MB, free: 15.76 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008863/0.5452, allocations: 103.9 kB / 464.4 MB, free: 15.66 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.5453, allocations: 4 kB / 464.4 MB, free: 15.66 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.123e-05/0.5453, allocations: 11.98 kB / 464.4 MB, free: 15.64 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.684e-06/0.5454, allocations: 5.047 kB / 464.4 MB, free: 15.64 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.5454, allocations: 0 / 464.4 MB, free: 15.64 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.5471, allocations: 0.6995 MB / 465.1 MB, free: 14.92 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001592/0.5473, allocations: 132.4 kB / 465.3 MB, free: 14.77 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.5475, allocations: 8 kB / 465.3 MB, free: 14.77 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006304/0.5481, allocations: 47.95 kB / 465.3 MB, free: 14.72 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.5483, allocations: 46.58 kB / 465.4 MB, free: 14.68 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.369e-05/0.5484, allocations: 19.98 kB / 465.4 MB, free: 14.66 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0005264/0.5489, allocations: 283 kB / 465.7 MB, free: 14.38 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5489, allocations: 0 / 465.7 MB, free: 14.38 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001197/0.5501, allocations: 215.1 kB / 465.9 MB, free: 14.17 MB / 363.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: 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) * 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.0002554/0.5504, allocations: 123.2 kB / 466 MB, free: 14.04 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.5521, allocations: 0.6618 MB / 466.7 MB, free: 13.38 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.5522, allocations: 0 / 466.7 MB, free: 13.38 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005653/0.5527, allocations: 217.6 kB / 466.9 MB, free: 13.17 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006029/0.5534, allocations: 55.48 kB / 466.9 MB, free: 13.12 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.5559, allocations: 0.8529 MB / 467.8 MB, free: 12.23 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006407/0.5565, allocations: 0.9111 MB / 468.7 MB, free: 11.29 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.5569, allocations: 59.41 kB / 468.8 MB, free: 11.23 MB / 363.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5569, allocations: 0 / 468.8 MB, free: 11.23 MB / 363.1 MB Notification: Performance of Templates: time 0.01839/0.5753, allocations: 7.336 MB / 476.1 MB, free: 3.93 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches