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.001197/0.001197, allocations: 114.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2623, allocations: 50.54 MB / 409.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005396/0.2677, allocations: 3.72 MB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002808/0.2706, allocations: 1.398 MB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004953/0.2711, allocations: 11.94 kB / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003328/0.2714, allocations: 90.92 kB / 415.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005558/0.272, allocations: 142.6 kB / 415.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009268/0.273, allocations: 458.8 kB / 415.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008966/0.2739, allocations: 0.9001 MB / 416.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005505/0.2744, allocations: 401.8 kB / 417 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.2749, allocations: 342.7 kB / 417.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004462/0.2754, allocations: 374.2 kB / 417.7 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.2755, allocations: 100 kB / 417.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002003/0.2757, allocations: 115.9 kB / 417.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.2759, allocations: 207.4 kB / 418.1 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003973/0.2763, allocations: 421.8 kB / 418.6 MB, free: 8.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009868/0.2773, allocations: 1.048 MB / 419.6 MB, free: 7.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2773, allocations: 0 / 419.6 MB, free: 7.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2774, allocations: 0 / 419.6 MB, free: 7.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.477e-05/0.2774, allocations: 0 / 419.6 MB, free: 7.809 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.002303/0.2797, allocations: 1.07 MB / 420.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.2797, allocations: 12.03 kB / 420.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007262/0.2805, allocations: 143.8 kB / 420.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.2816, allocations: 0.6647 MB / 421.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.2816, allocations: 53.69 kB / 421.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.752e-05/0.2817, allocations: 64.36 kB / 421.6 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.2829, allocations: 0.6567 MB / 422.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.283, allocations: 7.906 kB / 422.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-05/0.2831, allocations: 24 kB / 422.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.2831, allocations: 12 kB / 422.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.2842, allocations: 0.497 MB / 422.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003015/0.2872, allocations: 1.898 MB / 424.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009458/0.2882, allocations: 485.1 kB / 425.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/0.2886, allocations: 222 kB / 425.4 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.19e-05/0.2887, allocations: 12.42 kB / 425.4 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000701/0.2894, allocations: 385.1 kB / 425.8 MB, free: 1.422 MB / 334.1 MB Notification: Performance of pre-optimization done (n=53): time 2.074e-06/0.2894, allocations: 0 / 425.8 MB, free: 1.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.001632/0.291, allocations: 0.7325 MB / 426.5 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.598e-05/0.2911, allocations: 119.2 kB / 426.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005326/0.2917, allocations: 498.7 kB / 427.1 MB, free: 52 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.179e-05/0.2917, allocations: 45.69 kB / 427.2 MB, free: 0 / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.292, allocations: 336.4 kB / 427.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.2922, allocations: 165.6 kB / 427.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.2923, allocations: 126.2 kB / 427.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.2925, allocations: 370.8 kB / 428.1 MB, free: 15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000447/0.293, allocations: 203.4 kB / 428.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005705/0.2935, allocations: 425 kB / 428.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000996/0.2946, allocations: 0.6166 MB / 429.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2946, allocations: 0 / 429.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001246/0.2958, allocations: 0.6852 MB / 430.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.2958, allocations: 8 kB / 430.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.2959, allocations: 4 kB / 430.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.2959, allocations: 12 kB / 430.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/0.2964, allocations: 139.7 kB / 430.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.2965, allocations: 19.88 kB / 430.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/0.2969, allocations: 79.52 kB / 430.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.106e-05/0.2969, allocations: 28 kB / 430.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005349/0.2974, allocations: 345.3 kB / 430.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004907/0.2979, allocations: 397 kB / 431.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000844/0.2988, allocations: 0.58 MB / 431.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.625e-06/0.2988, allocations: 4 kB / 431.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001062/0.2999, allocations: 0.6279 MB / 432.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.2999, allocations: 8 kB / 432.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2999, allocations: 4 kB / 432.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2999, allocations: 12 kB / 432.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004445/0.3004, allocations: 132.3 kB / 432.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.3004, allocations: 19.92 kB / 432.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000354/0.3008, allocations: 59.61 kB / 432.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.3008, allocations: 35.97 kB / 432.5 MB, free: 10.23 MB / 350.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.0001698/0.301, allocations: 234.6 kB / 432.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.458e-05/0.3011, allocations: 67.23 kB / 432.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.3023, allocations: 0.5911 MB / 433.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/0.3023, allocations: 7.938 kB / 433.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3023, allocations: 3.984 kB / 433.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.3024, allocations: 132.2 kB / 433.6 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.845e-05/0.3025, allocations: 16 kB / 433.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003158/0.3028, allocations: 39.95 kB / 433.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.303, allocations: 44.5 kB / 433.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001433/0.3044, allocations: 0.6861 MB / 434.3 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001704/0.3061, allocations: 1.071 MB / 435.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004969/0.3066, allocations: 264.4 kB / 435.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003317/0.307, allocations: 330.9 kB / 436 MB, free: 6.707 MB / 350.1 MB Notification: Performance of Backend: time 4.71e-07/0.307, allocations: 0 / 436 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.3085, allocations: 0.7244 MB / 436.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of SimCode: time 0.001739/0.3103, allocations: 1.531 MB / 438.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of Templates: time 0.01433/0.3246, allocations: 8.955 MB / 447.2 MB, free: 11.46 MB / 366.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches