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.001033/0.001033, allocations: 205.6 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007639/0.0007639, allocations: 98 kB / 297.5 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002373/0.0002373, allocations: 8 kB / 358.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.245, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09487/0.34, allocations: 81.76 MB / 491.1 MB, free: 9.777 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.3402, allocations: 71.97 kB / 491.2 MB, free: 9.707 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02897/0.3692, allocations: 10.81 MB / 0.4902 GB, free: 14.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3692, allocations: 0 / 0.4902 GB, free: 14.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.207e-05/0.3693, allocations: 16 kB / 0.4903 GB, free: 14.86 MB / 378.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.001919/0.3712, allocations: 0.9454 MB / 0.4912 GB, free: 13.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3712, allocations: 8.031 kB / 0.4912 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007061/0.372, allocations: 167.8 kB / 0.4913 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009097/0.3729, allocations: 0.5497 MB / 0.4919 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.268e-05/0.3729, allocations: 53.67 kB / 0.4919 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.3731, allocations: 64.28 kB / 0.492 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.3745, allocations: 0.6844 MB / 0.4927 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.3746, allocations: 192 / 0.4927 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.106e-05/0.3746, allocations: 31.92 kB / 0.4927 GB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.3747, allocations: 19.94 kB / 0.4927 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.3759, allocations: 0.5439 MB / 0.4932 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003424/0.3794, allocations: 2.026 MB / 0.4952 GB, free: 9.578 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009715/0.3804, allocations: 0.5226 MB / 0.4957 GB, free: 9.051 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004644/0.3808, allocations: 238.1 kB / 0.496 GB, free: 8.816 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.3809, allocations: 16.36 kB / 0.496 GB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007449/0.3816, allocations: 417.1 kB / 0.4964 GB, free: 8.383 MB / 378.7 MB Notification: Performance of pre-optimization done (n=53): time 2.856e-06/0.3817, allocations: 0 / 0.4964 GB, free: 8.383 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.001726/0.3834, allocations: 0.8029 MB / 0.4972 GB, free: 7.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.777e-05/0.3835, allocations: 115.2 kB / 0.4973 GB, free: 7.434 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006233/0.3841, allocations: 493.8 kB / 0.4977 GB, free: 6.941 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.818e-05/0.3842, allocations: 45.69 kB / 0.4978 GB, free: 6.891 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/0.3845, allocations: 332.4 kB / 0.4981 GB, free: 6.559 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.3846, allocations: 161.7 kB / 0.4983 GB, free: 6.398 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.3847, allocations: 12 kB / 0.4983 GB, free: 6.387 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.3849, allocations: 366.8 kB / 0.4986 GB, free: 6.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005156/0.3854, allocations: 229.2 kB / 0.4988 GB, free: 5.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006319/0.386, allocations: 453 kB / 0.4993 GB, free: 5.262 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.3872, allocations: 0.6747 MB / 0.4999 GB, free: 4.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.3872, allocations: 0 / 0.4999 GB, free: 4.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001445/0.3886, allocations: 0.7369 MB / 0.5006 GB, free: 3.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.3888, allocations: 273.3 kB / 0.5009 GB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.3888, allocations: 11.94 kB / 0.5009 GB, free: 3.391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.3889, allocations: 12 kB / 0.5009 GB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005264/0.3894, allocations: 147.7 kB / 0.5011 GB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.038e-05/0.3894, allocations: 15.94 kB / 0.5011 GB, free: 3.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004667/0.3899, allocations: 91.48 kB / 0.5012 GB, free: 3.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.39, allocations: 28 kB / 0.5012 GB, free: 3.102 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-06/0.39, allocations: 4 kB / 0.5012 GB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001191/0.3912, allocations: 0.5961 MB / 0.5018 GB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.3912, allocations: 15.92 kB / 0.5018 GB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.3912, allocations: 8.312 kB / 0.5018 GB, free: 2.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004521/0.3917, allocations: 135.8 kB / 0.5019 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.784e-05/0.3917, allocations: 15.92 kB / 0.502 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.3922, allocations: 75.52 kB / 0.502 GB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.957e-05/0.3922, allocations: 31.98 kB / 0.5021 GB, free: 2.227 MB / 378.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 () * 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.0004565/0.3927, allocations: 315.5 kB / 0.5024 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.3928, allocations: 55.34 kB / 0.5024 GB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.3942, allocations: 0.627 MB / 0.503 GB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.3942, allocations: 8 kB / 0.503 GB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3942, allocations: 4 kB / 0.503 GB, free: 1.207 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3942, allocations: 0 / 0.503 GB, free: 1.207 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009687/0.3952, allocations: 0.6574 MB / 0.5037 GB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.3952, allocations: 0 / 0.5037 GB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004509/0.3957, allocations: 91.88 kB / 0.5038 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.66e-05/0.3957, allocations: 7.984 kB / 0.5038 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.241e-05/0.3958, allocations: 16 kB / 0.5038 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3958, allocations: 0 / 0.5038 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3958, allocations: 3.984 kB / 0.5038 GB, free: 392 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1833/0.5791, allocations: 0.9322 MB / 0.5047 GB, free: 92.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.5794, allocations: 139.2 kB / 0.5048 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/0.5795, allocations: 18.91 kB / 0.5048 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.5798, allocations: 55.98 kB / 0.5049 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.58, allocations: 42.36 kB / 0.5049 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.747e-05/0.58, allocations: 21.22 kB / 0.505 GB, free: 92.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004699/0.5805, allocations: 334.5 kB / 0.5053 GB, free: 92.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5805, allocations: 0 / 0.5053 GB, free: 92.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001023/0.5815, allocations: 254.2 kB / 0.5055 GB, free: 92.45 MB / 378.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) * 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.0002302/0.5818, allocations: 140.1 kB / 0.5057 GB, free: 92.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.5836, allocations: 0.8967 MB / 0.5065 GB, free: 92.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5836, allocations: 3.703 kB / 0.5065 GB, free: 92.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005813/0.5842, allocations: 288.9 kB / 0.5068 GB, free: 92.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005573/0.5848, allocations: 85.59 kB / 0.5069 GB, free: 92.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.5871, allocations: 1.388 MB / 0.5082 GB, free: 91.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/0.5877, allocations: 0.9062 MB / 0.5091 GB, free: 90.97 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005317/0.5882, allocations: 101.2 kB / 0.5092 GB, free: 90.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.5884, allocations: 50.3 kB / 0.5093 GB, free: 90.96 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5884, allocations: 3.875 kB / 0.5093 GB, free: 90.96 MB / 378.7 MB Notification: Performance of Templates: time 0.009763/0.5981, allocations: 5.664 MB / 0.5148 GB, free: 90.74 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/jenkins1/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