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.00106/0.00106, allocations: 103.1 kB / 18.4 MB, free: 4.656 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.00102/0.00102, allocations: 188.5 kB / 19.33 MB, free: 3.734 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.25/1.25, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001154/0.001154, allocations: 59.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07503/0.07619, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004499/0.08071, allocations: 3.58 MB / 379.4 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1499/0.2306, allocations: 1.258 MB / 380.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004006/0.231, allocations: 14.41 kB / 380.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002276/0.2313, allocations: 84.14 kB / 380.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003415/0.2316, allocations: 141.2 kB / 380.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006254/0.2323, allocations: 401.3 kB / 381.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006167/0.2329, allocations: 0.8525 MB / 382.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004458/0.2334, allocations: 382 kB / 382.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.2337, allocations: 325.8 kB / 382.8 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003542/0.234, allocations: 350.5 kB / 383.2 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001515/0.2342, allocations: 94.66 kB / 383.3 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.2344, allocations: 97.38 kB / 383.4 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.2345, allocations: 195.6 kB / 383.5 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.2348, allocations: 386.9 kB / 383.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007755/0.2356, allocations: 0.97 MB / 384.9 MB, free: 8.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2356, allocations: 0 / 384.9 MB, free: 8.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2356, allocations: 1.031 kB / 384.9 MB, free: 8.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.2356, allocations: 0 / 384.9 MB, free: 8.965 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.001696/0.2373, allocations: 1.015 MB / 385.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.2373, allocations: 9.516 kB / 385.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.2375, allocations: 81.88 kB / 386 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000886/0.2384, allocations: 0.6011 MB / 386.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.2384, allocations: 47.64 kB / 386.6 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.757e-05/0.2385, allocations: 64.31 kB / 386.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.2396, allocations: 0.6427 MB / 387.4 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.2397, allocations: 2.297 kB / 387.4 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.852e-05/0.2397, allocations: 22.44 kB / 387.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.2398, allocations: 13.34 kB / 387.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.2409, allocations: 0.4915 MB / 387.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002649/0.2435, allocations: 1.826 MB / 389.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009426/0.2445, allocations: 496.5 kB / 390.2 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004464/0.2449, allocations: 216.2 kB / 390.4 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.245, allocations: 12.12 kB / 390.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007192/0.2457, allocations: 384.9 kB / 390.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=53): time 2.174e-06/0.2457, allocations: 0 / 390.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=53): time 0.001614/0.2473, allocations: 0.7255 MB / 391.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.2474, allocations: 112.2 kB / 391.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.2478, allocations: 458 kB / 392.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.757e-05/0.2479, allocations: 39.33 kB / 392.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.2481, allocations: 318 kB / 392.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.2482, allocations: 161.3 kB / 392.6 MB, free: 4.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.2483, allocations: 129.4 kB / 392.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.107e-05/0.2484, allocations: 370.5 kB / 393.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004739/0.2489, allocations: 203.6 kB / 393.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.2495, allocations: 427.4 kB / 393.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009734/0.2504, allocations: 0.6189 MB / 394.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.2505, allocations: 3.594 kB / 394.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001267/0.2517, allocations: 0.6715 MB / 395 MB, free: 3.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2518, allocations: 8.562 kB / 395 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.2518, allocations: 6.688 kB / 395 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.2518, allocations: 14.69 kB / 395 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005408/0.2524, allocations: 132.4 kB / 395.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.068e-05/0.2524, allocations: 15.61 kB / 395.2 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004153/0.2528, allocations: 81.28 kB / 395.2 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.44e-05/0.2529, allocations: 31.92 kB / 395.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005259/0.2534, allocations: 343.3 kB / 395.6 MB, free: 3.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004538/0.2539, allocations: 394.1 kB / 396 MB, free: 2.691 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007973/0.2547, allocations: 0.5761 MB / 396.6 MB, free: 2.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.547e-06/0.2547, allocations: 1.188 kB / 396.6 MB, free: 2.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001064/0.2557, allocations: 0.6402 MB / 397.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.2558, allocations: 8.562 kB / 397.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2558, allocations: 13.91 kB / 397.2 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2558, allocations: 9.812 kB / 397.2 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004568/0.2563, allocations: 126.2 kB / 397.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.2563, allocations: 12.23 kB / 397.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.2567, allocations: 70.62 kB / 397.4 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.74e-05/0.2567, allocations: 28.03 kB / 397.5 MB, free: 1.934 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.0001462/0.2569, allocations: 245.5 kB / 397.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.76e-05/0.2569, allocations: 55.92 kB / 397.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/0.2582, allocations: 0.5887 MB / 398.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.2582, allocations: 3.141 kB / 398.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2582, allocations: 1.094 kB / 398.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.225e-05/0.2583, allocations: 133.2 kB / 398.5 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.022e-05/0.2584, allocations: 22.81 kB / 398.5 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003451/0.2588, allocations: 39.27 kB / 398.5 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.2589, allocations: 41.69 kB / 398.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001446/0.2603, allocations: 0.6852 MB / 399.3 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001689/0.262, allocations: 1.054 MB / 400.3 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005267/0.2626, allocations: 270.1 kB / 400.6 MB, free: 360 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003449/0.2629, allocations: 312 kB / 400.9 MB, free: 204 kB / 318.1 MB Notification: Performance of Backend: time 5.21e-07/0.2629, allocations: 0 / 400.9 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.2645, allocations: 0.7118 MB / 401.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 0.001718/0.2662, allocations: 1.47 MB / 403.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of Templates: time 0.01401/0.2802, allocations: 8.644 MB / 411.7 MB, free: 10.2 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