Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001312/0.001312, allocations: 113.9 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 209.8 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.398/1.398, allocations: 230.4 MB / 258.1 MB, free: 8.156 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=1000,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.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 76.05 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2524, allocations: 53.32 MB / 432.1 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005887/0.2583, allocations: 3.767 MB / 435.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003692/0.262, allocations: 1.402 MB / 437.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007666/0.2627, allocations: 19.88 kB / 437.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000416/0.2631, allocations: 90.86 kB / 437.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006368/0.2638, allocations: 154.6 kB / 437.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.2652, allocations: 451.3 kB / 437.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001163/0.2663, allocations: 0.904 MB / 438.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005134/0.2668, allocations: 270 kB / 439.1 MB, free: 324 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005034/0.2673, allocations: 350.7 kB / 439.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004584/0.2678, allocations: 378.1 kB / 439.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.2679, allocations: 100 kB / 439.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.2681, allocations: 112 kB / 440 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.2683, allocations: 207.4 kB / 440.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003918/0.2687, allocations: 413.8 kB / 440.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.27, allocations: 1.053 MB / 441.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.27, allocations: 0 / 441.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.27, allocations: 0 / 441.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.27, allocations: 0 / 441.7 MB, free: 13.73 MB / 350.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.002442/0.2725, allocations: 1.408 MB / 443.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2725, allocations: 16.03 kB / 443.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000683/0.2732, allocations: 152.2 kB / 443.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.2743, allocations: 0.6613 MB / 443.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.265e-05/0.2743, allocations: 53.67 kB / 444 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.2744, allocations: 64.33 kB / 444 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.2757, allocations: 0.6645 MB / 444.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.2757, allocations: 4 kB / 444.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-05/0.2758, allocations: 20 kB / 444.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.2758, allocations: 12 kB / 444.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.277, allocations: 0.5009 MB / 445.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003151/0.2802, allocations: 1.894 MB / 447.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.2812, allocations: 462.3 kB / 447.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004697/0.2817, allocations: 198 kB / 447.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.2817, allocations: 16.36 kB / 447.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007657/0.2825, allocations: 389.2 kB / 448.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=53): time 2.154e-06/0.2825, allocations: 0 / 448.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.001809/0.2843, allocations: 0.7405 MB / 448.9 MB, free: 6.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.2844, allocations: 119.2 kB / 449 MB, free: 6.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006506/0.2851, allocations: 486.9 kB / 449.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.976e-05/0.2851, allocations: 45.69 kB / 449.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003477/0.2855, allocations: 344.9 kB / 449.9 MB, free: 5.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.2856, allocations: 170.6 kB / 450 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.2859, allocations: 126.3 kB / 450.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.286, allocations: 374.8 kB / 450.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.2866, allocations: 207.4 kB / 450.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000672/0.2872, allocations: 424.9 kB / 451.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.2883, allocations: 0.6151 MB / 451.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2883, allocations: 0 / 451.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001407/0.2898, allocations: 0.6873 MB / 452.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2898, allocations: 8 kB / 452.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.2898, allocations: 4 kB / 452.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.2898, allocations: 12 kB / 452.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/0.2904, allocations: 140 kB / 452.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/0.2904, allocations: 19.94 kB / 452.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.2908, allocations: 83.58 kB / 452.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.2908, allocations: 24 kB / 452.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000589/0.2914, allocations: 345.3 kB / 453.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005798/0.292, allocations: 393 kB / 453.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009684/0.293, allocations: 0.5838 MB / 454 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.293, allocations: 0 / 454 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001155/0.2941, allocations: 0.6329 MB / 454.7 MB, free: 88 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.2941, allocations: 12 kB / 454.7 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.2941, allocations: 4 kB / 454.7 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.2941, allocations: 12 kB / 454.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.2946, allocations: 127.7 kB / 454.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.2946, allocations: 19.92 kB / 454.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/0.295, allocations: 67.64 kB / 454.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.2951, allocations: 28 kB / 454.9 MB, free: 15.82 MB / 366.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.0002377/0.2953, allocations: 238.6 kB / 455.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.2954, allocations: 71.56 kB / 455.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.2968, allocations: 0.5834 MB / 455.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.2968, allocations: 7.922 kB / 455.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2968, allocations: 3.938 kB / 455.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.297, allocations: 144.5 kB / 456 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.795e-05/0.297, allocations: 12 kB / 456 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003356/0.2974, allocations: 43.95 kB / 456 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.2975, allocations: 48.5 kB / 456.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001601/0.2991, allocations: 0.6822 MB / 456.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002024/0.3011, allocations: 1.064 MB / 457.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005374/0.3017, allocations: 252.4 kB / 458.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004767/0.3021, allocations: 330.9 kB / 458.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of Backend: time 3.11e-07/0.3021, allocations: 0 / 458.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001873/0.304, allocations: 0.6783 MB / 459.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of SimCode: time 0.002108/0.3061, allocations: 1.572 MB / 460.6 MB, free: 10 MB / 366.1 MB Notification: Performance of Templates: time 0.01765/0.3238, allocations: 9.348 MB / 470 MB, free: 0.6836 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5754724708385766]