Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002339/0.002339, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.584/3.584, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001757/0.001757, allocations: 86.89 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006567/0.0006568, allocations: 8 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2462, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.008935/0.2552, allocations: 2.979 MB / 377.5 MB, free: 12.44 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004991/0.2602, allocations: 1.182 MB / 378.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007186/0.261, allocations: 11.94 kB / 378.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004157/0.2615, allocations: 51.44 kB / 378.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.2625, allocations: 119.6 kB / 378.9 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001729/0.2643, allocations: 255.5 kB / 379.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.2662, allocations: 479 kB / 379.6 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001016/0.2673, allocations: 264.7 kB / 379.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008663/0.2682, allocations: 226.9 kB / 380.1 MB, free: 9.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007742/0.269, allocations: 258.6 kB / 380.3 MB, free: 9.605 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000178/0.2692, allocations: 24 kB / 380.3 MB, free: 9.582 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.2694, allocations: 24 kB / 380.4 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002425/0.2697, allocations: 111.5 kB / 380.5 MB, free: 9.449 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000342/0.27, allocations: 145.3 kB / 380.6 MB, free: 9.301 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.2718, allocations: 0.7094 MB / 381.3 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2718, allocations: 0 / 381.3 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.869e-06/0.2719, allocations: 0 / 381.3 MB, free: 8.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.912e-05/0.2719, allocations: 0 / 381.3 MB, free: 8.59 MB / 282.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.004479/0.2764, allocations: 0.8848 MB / 382.2 MB, free: 7.652 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.278e-05/0.2765, allocations: 12.03 kB / 382.2 MB, free: 7.641 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004988/0.277, allocations: 91.05 kB / 382.3 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002751/0.2798, allocations: 0.5836 MB / 382.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.28, allocations: 45.31 kB / 382.9 MB, free: 6.879 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002865/0.2803, allocations: 63.94 kB / 383 MB, free: 6.816 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00362/0.284, allocations: 0.6482 MB / 383.7 MB, free: 6.152 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-05/0.2841, allocations: 3.906 kB / 383.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.2843, allocations: 24 kB / 383.7 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.2844, allocations: 12 kB / 383.7 MB, free: 6.113 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003623/0.288, allocations: 0.527 MB / 384.2 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00834/0.2964, allocations: 1.888 MB / 386.1 MB, free: 3.633 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003267/0.2997, allocations: 0.5285 MB / 386.6 MB, free: 3.094 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.955e-05/0.2999, allocations: 8.422 kB / 386.6 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002277/0.3022, allocations: 409 kB / 387 MB, free: 2.672 MB / 282.7 MB Notification: Performance of pre-optimization done (n=53): time 6.672e-06/0.3023, allocations: 3.938 kB / 387 MB, free: 2.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=53): time 0.005186/0.3075, allocations: 0.7796 MB / 387.8 MB, free: 1.887 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/0.3077, allocations: 119.2 kB / 387.9 MB, free: 1.746 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.309, allocations: 449.9 kB / 388.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002274/0.3092, allocations: 45.7 kB / 388.4 MB, free: 1.242 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004919/0.3097, allocations: 358.8 kB / 388.8 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003784/0.3102, allocations: 161.7 kB / 388.9 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.271e-05/0.3103, allocations: 12 kB / 388.9 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.3105, allocations: 338.8 kB / 389.3 MB, free: 388 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.312, allocations: 213.2 kB / 389.5 MB, free: 176 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4119/0.7239, allocations: 428.7 kB / 389.9 MB, free: 19.85 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001818/0.7258, allocations: 255.1 kB / 390.2 MB, free: 19.85 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.24e-05/0.7259, allocations: 2.812 kB / 390.2 MB, free: 19.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.004514/0.7304, allocations: 0.6766 MB / 390.8 MB, free: 19.79 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009657/0.7315, allocations: 2.529 MB / 393.4 MB, free: 17.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.281e-05/0.7316, allocations: 10.7 kB / 393.4 MB, free: 17.14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.285e-05/0.7317, allocations: 10.89 kB / 393.4 MB, free: 17.14 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/0.7335, allocations: 151.7 kB / 393.5 MB, free: 17.13 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.167e-05/0.7335, allocations: 10.94 kB / 393.5 MB, free: 17.13 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.7349, allocations: 94.69 kB / 393.6 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.7351, allocations: 31.14 kB / 393.7 MB, free: 17.12 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.7351, allocations: 6.688 kB / 393.7 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003301/0.7385, allocations: 0.5733 MB / 394.2 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.805e-05/0.7386, allocations: 6.531 kB / 394.3 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.896e-05/0.7386, allocations: 10.34 kB / 394.3 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.7402, allocations: 138 kB / 394.4 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.406e-05/0.7403, allocations: 10.89 kB / 394.4 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009344/0.7412, allocations: 74.88 kB / 394.5 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.7414, allocations: 30.95 kB / 394.5 MB, free: 17.05 MB / 282.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.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$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.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.0009619/0.7423, allocations: 315.3 kB / 394.8 MB, free: 16.8 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.7427, allocations: 58.03 kB / 394.9 MB, free: 16.8 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.7465, allocations: 0.6194 MB / 395.5 MB, free: 16.57 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/0.7465, allocations: 6.75 kB / 395.5 MB, free: 16.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/0.7466, allocations: 0 / 395.5 MB, free: 16.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.191e-05/0.7466, allocations: 6.797 kB / 395.5 MB, free: 16.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.7485, allocations: 0.6262 MB / 396.1 MB, free: 16.21 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/0.7486, allocations: 9.297 kB / 396.1 MB, free: 16.2 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/0.7501, allocations: 99.05 kB / 396.2 MB, free: 16.2 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.343e-05/0.7502, allocations: 2.469 kB / 396.2 MB, free: 16.2 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/0.7504, allocations: 15.91 kB / 396.3 MB, free: 16.19 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.469e-05/0.7504, allocations: 3.562 kB / 396.3 MB, free: 16.19 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.7504, allocations: 3.719 kB / 396.3 MB, free: 16.19 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005408/0.7559, allocations: 0.9308 MB / 397.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/0.7562, allocations: 139.4 kB / 397.3 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002485/0.7565, allocations: 14.2 kB / 397.3 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.7575, allocations: 55.16 kB / 397.4 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003368/0.7579, allocations: 47.11 kB / 397.4 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.7581, allocations: 21.75 kB / 397.5 MB, free: 15.68 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009168/0.759, allocations: 305.8 kB / 397.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.062e-06/0.759, allocations: 1.219 kB / 397.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002209/0.7613, allocations: 240.7 kB / 398 MB, free: 15.46 MB / 282.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: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,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.000344/0.7617, allocations: 124.6 kB / 398.1 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005245/0.7669, allocations: 0.8784 MB / 399 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/0.767, allocations: 3.438 kB / 399 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001927/0.769, allocations: 297.8 kB / 399.3 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.7702, allocations: 67.23 kB / 399.4 MB, free: 14.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005404/0.7756, allocations: 1.385 MB / 400.7 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008584/0.7766, allocations: 0.9134 MB / 401.7 MB, free: 13.39 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00055/0.7772, allocations: 56.09 kB / 401.7 MB, free: 13.39 MB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/0.7772, allocations: 0 / 401.7 MB, free: 13.39 MB / 282.7 MB Notification: Performance of Templates: time 0.03274/0.8099, allocations: 7.545 MB / 409.3 MB, free: 10.84 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches