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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001111/0.001111, allocations: 91.23 kB / 17.63 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001629/0.001629, allocations: 197.1 kB / 18.54 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.3 MB / 246.6 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002464/0.0002465, allocations: 4 kB / 307.3 MB, free: 1.406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1191, allocations: 51.49 MB / 358.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004012/0.1232, allocations: 3.155 MB / 361.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.1257, allocations: 1.247 MB / 363.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002622/0.126, allocations: 11.94 kB / 363.2 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.1262, allocations: 51.42 kB / 363.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.1265, allocations: 103.1 kB / 363.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000642/0.1272, allocations: 259.6 kB / 363.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007791/0.128, allocations: 0.7752 MB / 364.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004526/0.1284, allocations: 284.7 kB / 364.7 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003265/0.1288, allocations: 226.9 kB / 364.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003199/0.1291, allocations: 270.5 kB / 365.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.131e-05/0.1292, allocations: 24 kB / 365.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.1293, allocations: 47.92 kB / 365.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.1294, allocations: 115.4 kB / 365.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.1296, allocations: 161.2 kB / 365.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007119/0.1303, allocations: 0.7562 MB / 366.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1303, allocations: 0 / 366.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1303, allocations: 0 / 366.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1303, allocations: 0 / 366.2 MB, free: 6.41 MB / 302.1 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.001678/0.132, allocations: 0.9354 MB / 367.2 MB, free: 5.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.1321, allocations: 8.031 kB / 367.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006491/0.1327, allocations: 166.8 kB / 367.3 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009564/0.1337, allocations: 0.6148 MB / 368 MB, free: 4.594 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.1337, allocations: 53.25 kB / 368 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.041e-05/0.1338, allocations: 64 kB / 368.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1351, allocations: 0.6722 MB / 368.7 MB, free: 3.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.1351, allocations: 7.844 kB / 368.8 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.294e-05/0.1352, allocations: 24 kB / 368.8 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/0.1352, allocations: 16 kB / 368.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.1364, allocations: 0.536 MB / 369.3 MB, free: 3.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00304/0.1394, allocations: 1.937 MB / 371.3 MB, free: 1.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009952/0.1404, allocations: 0.5206 MB / 371.8 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004474/0.1409, allocations: 234.1 kB / 372 MB, free: 444 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.861e-05/0.1409, allocations: 12.42 kB / 372 MB, free: 432 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007423/0.1417, allocations: 412.5 kB / 372.4 MB, free: 12 kB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 2.585e-06/0.1417, allocations: 0 / 372.4 MB, free: 12 kB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.2656/0.4073, allocations: 0.7833 MB / 373.2 MB, free: 19.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.684e-05/0.4074, allocations: 115.8 kB / 373.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008021/0.4082, allocations: 471.5 kB / 373.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/0.4083, allocations: 42.19 kB / 373.8 MB, free: 18.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003209/0.4087, allocations: 334 kB / 374.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.4088, allocations: 161.1 kB / 374.3 MB, free: 18.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.4089, allocations: 13 kB / 374.3 MB, free: 18.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.4091, allocations: 375.5 kB / 374.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006237/0.4097, allocations: 215.5 kB / 374.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000755/0.4105, allocations: 439.4 kB / 375.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006397/0.4111, allocations: 265.4 kB / 375.6 MB, free: 18.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.4111, allocations: 1.125 kB / 375.6 MB, free: 18.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001608/0.4128, allocations: 0.713 MB / 376.3 MB, free: 18.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.4129, allocations: 284 kB / 376.6 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.4129, allocations: 7.312 kB / 376.6 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.133e-05/0.413, allocations: 10.62 kB / 376.6 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005694/0.4136, allocations: 141.8 kB / 376.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.178e-05/0.4136, allocations: 15.25 kB / 376.8 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/0.414, allocations: 99.41 kB / 376.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.329e-05/0.4141, allocations: 31.12 kB / 376.9 MB, free: 17.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.874e-06/0.4141, allocations: 4.125 kB / 376.9 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001041/0.4151, allocations: 0.5755 MB / 377.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.4152, allocations: 5.5 kB / 377.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.4152, allocations: 14.95 kB / 377.5 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.4157, allocations: 131.1 kB / 377.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.115e-05/0.4157, allocations: 16.58 kB / 377.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.4161, allocations: 83.8 kB / 377.7 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.4161, allocations: 29.02 kB / 377.7 MB, free: 17.34 MB / 302.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_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.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$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.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid) * 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.0005216/0.4166, allocations: 311.6 kB / 378 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.4168, allocations: 61.19 kB / 378.1 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/0.4184, allocations: 0.625 MB / 378.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.4184, allocations: 10.64 kB / 378.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.4185, allocations: 1.188 kB / 378.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.4185, allocations: 2.625 kB / 378.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009889/0.4195, allocations: 0.6445 MB / 379.4 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.4195, allocations: 0.9375 kB / 379.4 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000449/0.4199, allocations: 102.8 kB / 379.5 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.4199, allocations: 6.531 kB / 379.5 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-05/0.42, allocations: 16.25 kB / 379.5 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.42, allocations: 1.188 kB / 379.5 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.42, allocations: 5.266 kB / 379.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002051/0.4221, allocations: 0.9313 MB / 380.4 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.4222, allocations: 138.9 kB / 380.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.25e-05/0.4223, allocations: 25.17 kB / 380.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.4227, allocations: 52.81 kB / 380.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.4229, allocations: 46.22 kB / 380.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.967e-05/0.4229, allocations: 22.12 kB / 380.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004625/0.4234, allocations: 326.8 kB / 381 MB, free: 15.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4234, allocations: 0 / 381 MB, free: 15.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00097/0.4244, allocations: 248.6 kB / 381.3 MB, free: 15.61 MB / 302.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: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid) * 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 (55): * Single equations (assignments): 49 * 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.0001919/0.4246, allocations: 131.8 kB / 381.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001907/0.4265, allocations: 0.8662 MB / 382.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.4265, allocations: 1.156 kB / 382.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006615/0.4272, allocations: 293.6 kB / 382.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.4277, allocations: 80.84 kB / 382.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.4304, allocations: 1.444 MB / 384.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005404/0.431, allocations: 0.9084 MB / 385 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.4312, allocations: 57.95 kB / 385.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4312, allocations: 0 / 385.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of Templates: time 0.02058/0.4518, allocations: 8.014 MB / 393.1 MB, free: 10.66 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortionCalcHelperMain.o OMCppModelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortionCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortionCalcHelperMain.o] Error 1