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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001655/0.001655, allocations: 196.1 kB / 8.765 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008993/0.0008992, allocations: 93.22 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.398e-05/1.407e-05, allocations: 4 kB / 343.7 MB, free: 8.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09665, allocations: 51.49 MB / 395.2 MB, free: 4.797 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2891/0.3858, allocations: 81.09 MB / 476.2 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.3861, allocations: 66.84 kB / 476.3 MB, free: 11.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02578/0.4118, allocations: 10.68 MB / 487 MB, free: 3.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.4119, allocations: 0 / 487 MB, free: 3.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.429e-05/0.4119, allocations: 19.98 kB / 487 MB, free: 3.352 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: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.001278/0.4132, allocations: 0.8649 MB / 487.9 MB, free: 2.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.4132, allocations: 8.031 kB / 487.9 MB, free: 2.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005986/0.4138, allocations: 155.8 kB / 488 MB, free: 2.324 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006225/0.4145, allocations: 0.5463 MB / 488.6 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.4145, allocations: 20 kB / 488.6 MB, free: 1.832 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.4146, allocations: 38.81 kB / 488.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000639/0.4152, allocations: 400.2 kB / 489 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007418/0.416, allocations: 0.5355 MB / 489.6 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.416, allocations: 4 kB / 489.6 MB, free: 1.168 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.977e-05/0.4161, allocations: 3.984 kB / 489.6 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.4161, allocations: 12 kB / 489.6 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002496/0.4186, allocations: 1.922 MB / 491.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006161/0.4192, allocations: 403.8 kB / 491.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.4195, allocations: 161.8 kB / 492.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.616e-05/0.4195, allocations: 4.438 kB / 492.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004739/0.42, allocations: 326.2 kB / 492.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 2.315e-06/0.42, allocations: 2.812 kB / 492.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.0006948/0.4207, allocations: 450.2 kB / 492.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.4208, allocations: 111.2 kB / 492.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004013/0.4212, allocations: 404 kB / 493.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.4212, allocations: 29.7 kB / 493.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.4214, allocations: 325 kB / 493.7 MB, free: 14.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.4215, allocations: 154.1 kB / 493.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.62e-05/0.4216, allocations: 0 / 493.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.4217, allocations: 370 kB / 494.2 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.4219, allocations: 149.9 kB / 494.3 MB, free: 13.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.4223, allocations: 368.7 kB / 494.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/0.4226, allocations: 186.7 kB / 494.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.4226, allocations: 4 kB / 494.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007942/0.4234, allocations: 0.5461 MB / 495.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009544/0.4243, allocations: 2.525 MB / 498 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.4244, allocations: 11.95 kB / 498 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.4244, allocations: 12 kB / 498 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/0.4249, allocations: 150.8 kB / 498.1 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.425, allocations: 11.94 kB / 498.1 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.4254, allocations: 79.48 kB / 498.2 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.665e-05/0.4254, allocations: 27.81 kB / 498.2 MB, free: 9.641 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.264e-06/0.4254, allocations: 4 kB / 498.2 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006332/0.4261, allocations: 450.1 kB / 498.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.4261, allocations: 8 kB / 498.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.4261, allocations: 12 kB / 498.7 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.4266, allocations: 136.3 kB / 498.8 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.4266, allocations: 15.94 kB / 498.9 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003566/0.4269, allocations: 59.56 kB / 498.9 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.427, allocations: 27.73 kB / 498.9 MB, free: 9.078 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_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.rootMeanSquare.mean.y_last,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.0001383/0.4271, allocations: 135.9 kB / 499.1 MB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.317e-05/0.4272, allocations: 65.17 kB / 499.1 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007225/0.428, allocations: 467.5 kB / 499.6 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.428, allocations: 4 kB / 499.6 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.428, allocations: 4 kB / 499.6 MB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.428, allocations: 3.984 kB / 499.6 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005259/0.4285, allocations: 0.5806 MB / 0.4885 GB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4285, allocations: 0 / 0.4885 GB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004333/0.429, allocations: 91.12 kB / 0.4885 GB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.429, allocations: 7.953 kB / 0.4886 GB, free: 7.996 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.429, allocations: 10.73 kB / 0.4886 GB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.429, allocations: 0 / 0.4886 GB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4291, allocations: 4 kB / 0.4886 GB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009716/0.43, allocations: 0.7058 MB / 0.4893 GB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.723e-05/0.4301, allocations: 138.5 kB / 0.4894 GB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.4302, allocations: 11.27 kB / 0.4894 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003315/0.4306, allocations: 47.95 kB / 0.4894 GB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.44e-05/0.4307, allocations: 41.94 kB / 0.4895 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.4307, allocations: 19.36 kB / 0.4895 GB, free: 7.242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003012/0.431, allocations: 296.9 kB / 0.4898 GB, free: 7.027 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.431, allocations: 3.938 kB / 0.4898 GB, free: 7.023 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006784/0.4317, allocations: 226.8 kB / 0.49 GB, free: 6.805 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_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,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.0001714/0.4319, allocations: 138.2 kB / 0.4901 GB, free: 6.664 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009332/0.4328, allocations: 0.6808 MB / 0.4908 GB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4328, allocations: 0.625 kB / 0.4908 GB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002866/0.4331, allocations: 217.8 kB / 0.491 GB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003696/0.4335, allocations: 64.97 kB / 0.4911 GB, free: 6.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.435, allocations: 0.8432 MB / 0.4919 GB, free: 5.281 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/0.4355, allocations: 0.9191 MB / 0.4928 GB, free: 4.336 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005086/0.436, allocations: 126.6 kB / 0.4929 GB, free: 4.211 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.4361, allocations: 46.67 kB / 0.493 GB, free: 4.172 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4361, allocations: 0 / 0.493 GB, free: 4.172 MB / 362.7 MB Notification: Performance of Templates: time 0.01053/0.4466, allocations: 5.839 MB / 0.4987 GB, free: 14.43 MB / 378.7 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) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches