Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.00165/0.00165, allocations: 108.4 kB / 18.4 MB, free: 4.68 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.001848/0.001848, allocations: 190.1 kB / 19.34 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 55.92 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09674, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.006555/0.1033, allocations: 3.576 MB / 379.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2062/0.3095, allocations: 1.253 MB / 380.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006105/0.3102, allocations: 15.19 kB / 380.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003/0.3106, allocations: 88.14 kB / 380.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.311, allocations: 132.1 kB / 380.9 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008362/0.3118, allocations: 392.3 kB / 381.3 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007926/0.3126, allocations: 0.8514 MB / 382.1 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005353/0.3132, allocations: 386.3 kB / 382.5 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003896/0.3136, allocations: 327.6 kB / 382.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.314, allocations: 350.4 kB / 383.1 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001998/0.3142, allocations: 94.69 kB / 383.2 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.3144, allocations: 97.09 kB / 383.3 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.3146, allocations: 197.2 kB / 383.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003839/0.315, allocations: 384.4 kB / 383.9 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.3163, allocations: 0.9722 MB / 384.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.3163, allocations: 1.031 kB / 384.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3163, allocations: 0 / 384.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.3163, allocations: 0 / 384.9 MB, free: 8.703 MB / 318.1 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.002044/0.3184, allocations: 1.018 MB / 385.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.3184, allocations: 8.531 kB / 385.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.3186, allocations: 81.02 kB / 386 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009822/0.3196, allocations: 0.5954 MB / 386.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.825e-05/0.3197, allocations: 46.8 kB / 386.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.917e-05/0.3198, allocations: 68.7 kB / 386.7 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.3209, allocations: 0.6471 MB / 387.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.321, allocations: 1.438 kB / 387.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.923e-05/0.3211, allocations: 22.22 kB / 387.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.3211, allocations: 12.34 kB / 387.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.3222, allocations: 497.4 kB / 387.9 MB, free: 7.035 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.3252, allocations: 1.837 MB / 389.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009455/0.3261, allocations: 488.6 kB / 390.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000458/0.3266, allocations: 210.5 kB / 390.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.3267, allocations: 17.61 kB / 390.4 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007595/0.3274, allocations: 396.9 kB / 390.8 MB, free: 5.559 MB / 318.1 MB Notification: Performance of pre-optimization done (n=53): time 2.274e-06/0.3274, allocations: 1.156 kB / 390.8 MB, free: 5.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=53): time 0.001711/0.3292, allocations: 0.721 MB / 391.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.3292, allocations: 118.1 kB / 391.6 MB, free: 5.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005691/0.3298, allocations: 452.9 kB / 392.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.923e-05/0.3299, allocations: 47.67 kB / 392.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/0.3301, allocations: 309.3 kB / 392.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.3302, allocations: 166 kB / 392.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.3304, allocations: 121.8 kB / 392.7 MB, free: 4.469 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3306, allocations: 372.8 kB / 393.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004921/0.3311, allocations: 208.4 kB / 393.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005625/0.3316, allocations: 421.3 kB / 393.7 MB, free: 3.715 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.3326, allocations: 0.6243 MB / 394.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.3327, allocations: 2.438 kB / 394.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001316/0.334, allocations: 0.6663 MB / 395 MB, free: 3.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.334, allocations: 9.516 kB / 395 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.334, allocations: 5.969 kB / 395 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.3341, allocations: 11.44 kB / 395 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005598/0.3346, allocations: 135.7 kB / 395.1 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.864e-05/0.3347, allocations: 19.98 kB / 395.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004133/0.3351, allocations: 81.84 kB / 395.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.744e-05/0.3351, allocations: 32.8 kB / 395.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005468/0.3357, allocations: 338.8 kB / 395.6 MB, free: 2.758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005197/0.3362, allocations: 397.9 kB / 396 MB, free: 2.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008288/0.3371, allocations: 0.5745 MB / 396.5 MB, free: 2.004 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.588e-06/0.3371, allocations: 2.281 kB / 396.6 MB, free: 2.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001097/0.3382, allocations: 0.6323 MB / 397.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.3382, allocations: 13.02 kB / 397.2 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3382, allocations: 12.28 kB / 397.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.3382, allocations: 9.406 kB / 397.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004662/0.3387, allocations: 124.4 kB / 397.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.3387, allocations: 14.61 kB / 397.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003776/0.3391, allocations: 67.73 kB / 397.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.3392, allocations: 27.81 kB / 397.4 MB, free: 1.676 MB / 318.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,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean1.y,thd1.pythagoras.valid,thd1.valid,thd1.greaterThreshold.y,thd1.rootMeanSquare.mean.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.harmonic.mean2.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean1.y) * 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.0001904/0.3394, allocations: 248.9 kB / 397.7 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.46e-05/0.3395, allocations: 55.7 kB / 397.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.3407, allocations: 0.5858 MB / 398.3 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.3407, allocations: 2.578 kB / 398.3 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3407, allocations: 0.6562 kB / 398.3 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.939e-05/0.3408, allocations: 133.5 kB / 398.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.352e-05/0.3409, allocations: 18.84 kB / 398.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.3413, allocations: 47.95 kB / 398.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3414, allocations: 41.25 kB / 398.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001546/0.343, allocations: 0.6898 MB / 399.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001802/0.3448, allocations: 1.051 MB / 400.3 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005458/0.3453, allocations: 270.9 kB / 400.6 MB, free: 92 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004115/0.3457, allocations: 314.5 kB / 400.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of Backend: time 1.243e-06/0.3458, allocations: 0 / 400.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.3476, allocations: 0.7018 MB / 401.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of SimCode: time 0.002136/0.3498, allocations: 1.475 MB / 403.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of Templates: time 0.0191/0.3689, allocations: 8.896 MB / 412 MB, free: 9.801 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches