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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 110.9 kB / 17.75 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 186.6 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 47.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2591, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004687/0.2638, allocations: 3.62 MB / 405 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.2657, allocations: 1.239 MB / 406.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.2659, allocations: 12 kB / 406.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002334/0.2661, allocations: 86.92 kB / 406.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003441/0.2665, allocations: 138.8 kB / 406.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006602/0.2671, allocations: 403.4 kB / 406.9 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007431/0.2679, allocations: 0.865 MB / 407.8 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005127/0.2684, allocations: 385.7 kB / 408.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003363/0.2688, allocations: 330.7 kB / 408.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003735/0.2691, allocations: 358.3 kB / 408.8 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.2693, allocations: 96 kB / 408.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.2694, allocations: 100 kB / 409 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.2696, allocations: 199.4 kB / 409.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003226/0.2699, allocations: 398 kB / 409.6 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008238/0.2707, allocations: 0.9939 MB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2708, allocations: 3.938 kB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.2708, allocations: 0 / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.2708, allocations: 4 kB / 410.6 MB, free: 15.64 MB / 334.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.00185/0.2726, allocations: 1.014 MB / 411.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.2727, allocations: 12.02 kB / 411.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.2728, allocations: 88 kB / 411.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009425/0.2738, allocations: 0.5887 MB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.359e-05/0.2738, allocations: 57.42 kB / 412.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.223e-05/0.2739, allocations: 63.94 kB / 412.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.2752, allocations: 0.6566 MB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.2752, allocations: 7.906 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.079e-05/0.2753, allocations: 20 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.2753, allocations: 12 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.2764, allocations: 0.5048 MB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.2793, allocations: 1.878 MB / 415.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009811/0.2803, allocations: 0.4893 MB / 416 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.2807, allocations: 214.1 kB / 416.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.896e-05/0.2808, allocations: 8.438 kB / 416.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007621/0.2816, allocations: 397 kB / 416.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of pre-optimization done (n=53): time 3.867e-06/0.2816, allocations: 3.984 kB / 416.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.001645/0.2832, allocations: 0.7248 MB / 417.3 MB, free: 8.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.2833, allocations: 115.2 kB / 417.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004616/0.2838, allocations: 449.8 kB / 417.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/0.2838, allocations: 41.7 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/0.2841, allocations: 320.3 kB / 418.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.2842, allocations: 157.8 kB / 418.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/0.2844, allocations: 130.2 kB / 418.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2845, allocations: 366.8 kB / 418.8 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004781/0.285, allocations: 203.4 kB / 419 MB, free: 6.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006116/0.2856, allocations: 421 kB / 419.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.2867, allocations: 0.6122 MB / 420.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.2867, allocations: 0 / 420.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00129/0.288, allocations: 0.6786 MB / 420.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.288, allocations: 11.94 kB / 420.8 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.2881, allocations: 11.98 kB / 420.8 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.2881, allocations: 8.438 kB / 420.8 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005512/0.2887, allocations: 139.7 kB / 420.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.2887, allocations: 11.98 kB / 420.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/0.2891, allocations: 79.34 kB / 421 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.2892, allocations: 35.98 kB / 421 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005562/0.2897, allocations: 345.3 kB / 421.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004994/0.2902, allocations: 389 kB / 421.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008569/0.2911, allocations: 0.5736 MB / 422.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.685e-06/0.2911, allocations: 0 / 422.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001093/0.2922, allocations: 0.6305 MB / 423 MB, free: 2.609 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.2922, allocations: 8 kB / 423 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.2922, allocations: 8 kB / 423 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.2923, allocations: 11.94 kB / 423 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004626/0.2927, allocations: 127.7 kB / 423.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.2927, allocations: 15.94 kB / 423.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003826/0.2931, allocations: 71.81 kB / 423.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.2932, allocations: 24 kB / 423.2 MB, free: 2.348 MB / 334.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,thdRMS.pythagoras.valid,thdRMS.valid,thdRMS.greaterThreshold.y,thdRMS.rootMeanSquare.mean.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean1.y_last,thd1.pythagoras.valid,thd1.valid,thd1.greaterThreshold.y,thd1.rootMeanSquare.mean.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean1.y_last) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.2934, allocations: 235.2 kB / 423.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.938e-05/0.2934, allocations: 55.28 kB / 423.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.2947, allocations: 0.5944 MB / 424.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.2947, allocations: 3.984 kB / 424.1 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2947, allocations: 0 / 424.1 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.748e-05/0.2948, allocations: 128.4 kB / 424.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-05/0.2949, allocations: 19.98 kB / 424.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000339/0.2953, allocations: 39.95 kB / 424.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.2954, allocations: 40.52 kB / 424.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001504/0.2969, allocations: 0.6899 MB / 425 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001799/0.2987, allocations: 1.052 MB / 426.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005081/0.2992, allocations: 272.4 kB / 426.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003267/0.2996, allocations: 299.1 kB / 426.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Backend: time 5.01e-07/0.2996, allocations: 0 / 426.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.3012, allocations: 0.7172 MB / 427.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of SimCode: time 0.001749/0.303, allocations: 1.493 MB / 428.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of Templates: time 0.01551/0.3185, allocations: 8.648 MB / 437.5 MB, free: 4.004 MB / 350.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches