Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 176.8 kB / 17.4 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.3 MB / 241.4 MB, free: 9.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007968/0.0007968, allocations: 105.1 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004635/0.0004635, allocations: 11.94 kB / 352.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3176, allocations: 50.4 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1098/0.4275, allocations: 81.04 MB / 483.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.4278, allocations: 71.97 kB / 483.8 MB, free: 15.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02937/0.4572, allocations: 10.5 MB / 494.3 MB, free: 4.664 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.4572, allocations: 4 kB / 494.3 MB, free: 4.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.489e-05/0.4573, allocations: 19.98 kB / 494.4 MB, free: 4.641 MB / 362.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.002122/0.4594, allocations: 0.9181 MB / 495.3 MB, free: 3.664 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.4595, allocations: 8.031 kB / 495.3 MB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002781/0.4598, allocations: 84 kB / 495.4 MB, free: 3.574 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00096/0.4607, allocations: 0.5379 MB / 495.9 MB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.447e-05/0.4608, allocations: 45.69 kB / 496 MB, free: 2.949 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.4609, allocations: 68.27 kB / 496 MB, free: 2.883 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.4623, allocations: 0.6844 MB / 496.7 MB, free: 2.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.4624, allocations: 4.188 kB / 496.7 MB, free: 2.176 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.478e-05/0.4625, allocations: 35.92 kB / 496.7 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.4625, allocations: 15.98 kB / 496.8 MB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.4638, allocations: 0.5477 MB / 497.3 MB, free: 1.574 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003655/0.4675, allocations: 1.984 MB / 499.3 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.4685, allocations: 0.5245 MB / 499.8 MB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004783/0.469, allocations: 242 kB / 0.4883 GB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.921e-05/0.4691, allocations: 12.44 kB / 0.4883 GB, free: 14.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008098/0.4699, allocations: 414.1 kB / 0.4887 GB, free: 14.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=53): time 4.008e-06/0.4699, allocations: 3.938 kB / 0.4887 GB, free: 14.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.001699/0.4716, allocations: 0.799 MB / 0.4895 GB, free: 13.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.103e-05/0.4717, allocations: 123.2 kB / 0.4896 GB, free: 13.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005821/0.4723, allocations: 453.8 kB / 0.4901 GB, free: 12.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.212e-05/0.4724, allocations: 45.7 kB / 0.4901 GB, free: 12.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.4726, allocations: 312.3 kB / 0.4904 GB, free: 12.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.4728, allocations: 173.6 kB / 0.4906 GB, free: 12.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.4728, allocations: 8 kB / 0.4906 GB, free: 12.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.473, allocations: 362.8 kB / 0.4909 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004851/0.4735, allocations: 233.2 kB / 0.4912 GB, free: 11.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006456/0.4741, allocations: 441 kB / 0.4916 GB, free: 11.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.4753, allocations: 0.658 MB / 0.4922 GB, free: 10.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.4753, allocations: 4 kB / 0.4922 GB, free: 10.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001429/0.4767, allocations: 0.7256 MB / 0.4929 GB, free: 9.777 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002199/0.4769, allocations: 284.3 kB / 0.4932 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.477, allocations: 15.94 kB / 0.4932 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.477, allocations: 8 kB / 0.4932 GB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005326/0.4775, allocations: 143.8 kB / 0.4934 GB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/0.4776, allocations: 11.94 kB / 0.4934 GB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/0.4781, allocations: 95.45 kB / 0.4935 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-05/0.4781, allocations: 28 kB / 0.4935 GB, free: 9.113 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.4781, allocations: 4 kB / 0.4935 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001103/0.4792, allocations: 0.5961 MB / 0.4941 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.4793, allocations: 8 kB / 0.4941 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.4793, allocations: 8 kB / 0.4941 GB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000435/0.4797, allocations: 131.8 kB / 0.4942 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.905e-05/0.4798, allocations: 11.94 kB / 0.4942 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.4802, allocations: 75.53 kB / 0.4943 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.988e-05/0.4802, allocations: 35.98 kB / 0.4943 GB, free: 8.25 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.0005208/0.4808, allocations: 315.4 kB / 0.4946 GB, free: 7.934 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.4809, allocations: 55.33 kB / 0.4947 GB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001332/0.4822, allocations: 0.6151 MB / 0.4953 GB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.4822, allocations: 4 kB / 0.4953 GB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.4823, allocations: 4 kB / 0.4953 GB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.4823, allocations: 7.984 kB / 0.4953 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008387/0.4831, allocations: 0.6418 MB / 0.4959 GB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.4831, allocations: 7.922 kB / 0.4959 GB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004282/0.4836, allocations: 99.88 kB / 0.496 GB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.4836, allocations: 0 / 0.496 GB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.302e-05/0.4837, allocations: 19.92 kB / 0.4961 GB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.4837, allocations: 4 kB / 0.4961 GB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.4837, allocations: 0 / 0.4961 GB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.4855, allocations: 0.9375 MB / 0.497 GB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001589/0.4856, allocations: 128.5 kB / 0.4971 GB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.628e-05/0.4857, allocations: 19.98 kB / 0.4971 GB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003255/0.4861, allocations: 47.97 kB / 0.4972 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.4862, allocations: 40.38 kB / 0.4972 GB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.315e-05/0.4863, allocations: 27.97 kB / 0.4972 GB, free: 5.191 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003822/0.4866, allocations: 311.1 kB / 0.4975 GB, free: 4.891 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4867, allocations: 0 / 0.4975 GB, free: 4.891 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000858/0.4875, allocations: 251 kB / 0.4978 GB, free: 4.645 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.0001954/0.4877, allocations: 136.9 kB / 0.4979 GB, free: 4.504 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.4895, allocations: 0.8887 MB / 0.4988 GB, free: 3.621 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.4895, allocations: 4.062 kB / 0.4988 GB, free: 3.617 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005821/0.4901, allocations: 290.3 kB / 0.499 GB, free: 3.332 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.4906, allocations: 70.53 kB / 0.4991 GB, free: 3.262 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.4929, allocations: 1.359 MB / 0.5004 GB, free: 1.875 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/0.4935, allocations: 0.9037 MB / 0.5013 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005107/0.494, allocations: 92.39 kB / 0.5014 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.4942, allocations: 51.36 kB / 0.5015 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.4942, allocations: 0 / 0.5015 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of Templates: time 0.201/0.6952, allocations: 5.436 MB / 0.5068 GB, free: 96.63 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches