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.001057/0.001057, allocations: 180 kB / 17.01 MB, free: 5.125 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.712/1.712, allocations: 205.4 MB / 223.1 MB, free: 9.023 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.0009577/0.0009578, allocations: 92.09 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.0002799, allocations: 8 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2845, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1035/0.388, allocations: 79.69 MB / 455.5 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.3884, allocations: 71.97 kB / 455.6 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02946/0.4178, allocations: 10.24 MB / 465.8 MB, free: 6.637 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4178, allocations: 0 / 465.8 MB, free: 6.637 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.077e-05/0.4179, allocations: 24.16 kB / 465.8 MB, free: 6.613 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.00179/0.4197, allocations: 0.9135 MB / 466.7 MB, free: 5.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.4197, allocations: 12.03 kB / 466.8 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.4199, allocations: 83.02 kB / 466.8 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008562/0.4208, allocations: 0.5216 MB / 467.4 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.968e-05/0.4208, allocations: 49.31 kB / 467.4 MB, free: 4.934 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.4209, allocations: 56 kB / 467.5 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.4221, allocations: 0.6676 MB / 468.1 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.4222, allocations: 7.906 kB / 468.1 MB, free: 4.188 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.988e-05/0.4222, allocations: 20 kB / 468.2 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.4223, allocations: 19.98 kB / 468.2 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.4234, allocations: 0.5426 MB / 468.7 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003323/0.4267, allocations: 1.932 MB / 470.6 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.4278, allocations: 0.5304 MB / 471.2 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.4279, allocations: 8.422 kB / 471.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007784/0.4287, allocations: 414.2 kB / 471.6 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of pre-optimization done (n=53): time 3.737e-06/0.4287, allocations: 0 / 471.6 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.001737/0.4304, allocations: 0.8029 MB / 472.4 MB, free: 15.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.4305, allocations: 119.2 kB / 472.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.431, allocations: 413.1 kB / 472.9 MB, free: 15.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/0.4311, allocations: 41.7 kB / 473 MB, free: 15.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.4313, allocations: 312.4 kB / 473.3 MB, free: 14.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.4315, allocations: 161.7 kB / 473.4 MB, free: 14.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.776e-05/0.4315, allocations: 8 kB / 473.4 MB, free: 14.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.4317, allocations: 370.8 kB / 473.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/0.4322, allocations: 229.2 kB / 474 MB, free: 14.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006251/0.4328, allocations: 445 kB / 474.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005361/0.4334, allocations: 267.9 kB / 474.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.4334, allocations: 0 / 474.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001361/0.4348, allocations: 0.7371 MB / 475.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001074/0.4359, allocations: 2.524 MB / 478 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4359, allocations: 11.95 kB / 478 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.825e-05/0.4359, allocations: 12 kB / 478 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005655/0.4365, allocations: 143.8 kB / 478.1 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.966e-05/0.4365, allocations: 15.94 kB / 478.1 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004863/0.437, allocations: 91.48 kB / 478.2 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.582e-05/0.4371, allocations: 28 kB / 478.3 MB, free: 9.617 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/0.4371, allocations: 8 kB / 478.3 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001044/0.4381, allocations: 0.5874 MB / 478.9 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.4382, allocations: 7.938 kB / 478.9 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.4382, allocations: 12 kB / 478.9 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.4386, allocations: 127.8 kB / 479 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.125e-05/0.4387, allocations: 19.92 kB / 479 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.439, allocations: 75.77 kB / 479.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.4391, allocations: 31.98 kB / 479.1 MB, free: 8.754 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.0005446/0.4396, allocations: 307.1 kB / 479.4 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.4398, allocations: 63.28 kB / 479.5 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00138/0.4411, allocations: 0.6113 MB / 480.1 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.4412, allocations: 11.92 kB / 480.1 MB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.4412, allocations: 0 / 480.1 MB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.4412, allocations: 3.984 kB / 480.1 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008408/0.442, allocations: 0.634 MB / 480.8 MB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.4421, allocations: 3.953 kB / 480.8 MB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/0.4425, allocations: 103.9 kB / 480.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.4426, allocations: 0 / 480.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.912e-05/0.4426, allocations: 19.98 kB / 480.9 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4426, allocations: 0 / 480.9 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4426, allocations: 0 / 480.9 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.4444, allocations: 0.9336 MB / 481.8 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.4446, allocations: 140.3 kB / 481.9 MB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.929e-05/0.4447, allocations: 16 kB / 482 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003689/0.4451, allocations: 51.95 kB / 482 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.4452, allocations: 44.5 kB / 482.1 MB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.4452, allocations: 23.98 kB / 482.1 MB, free: 5.691 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003886/0.4456, allocations: 314.9 kB / 482.4 MB, free: 5.387 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4456, allocations: 3.938 kB / 482.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008379/0.4465, allocations: 251.1 kB / 482.6 MB, free: 5.137 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.0002021/0.4467, allocations: 135.4 kB / 482.8 MB, free: 4.996 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.4485, allocations: 0.8894 MB / 483.7 MB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4485, allocations: 0 / 483.7 MB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005547/0.449, allocations: 290.9 kB / 483.9 MB, free: 3.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.4494, allocations: 68.16 kB / 484 MB, free: 3.773 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/0.4518, allocations: 1.343 MB / 485.4 MB, free: 2.395 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.4523, allocations: 0.9076 MB / 486.3 MB, free: 1.457 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004612/0.4528, allocations: 100.5 kB / 486.4 MB, free: 1.355 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.453, allocations: 51.42 kB / 486.4 MB, free: 1.305 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.453, allocations: 3.938 kB / 486.4 MB, free: 1.301 MB / 362.7 MB Notification: Performance of Templates: time 0.01098/0.464, allocations: 5.379 MB / 491.8 MB, free: 11.93 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/jenkins/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