Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001931/0.001931, allocations: 106.8 kB / 21.19 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 213.3 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.459/1.459, allocations: 230.6 MB / 258.2 MB, free: 7.793 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Blocks.Examples.TotalHarmonicDistortion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 47.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2336, allocations: 53.38 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004982/0.2386, allocations: 3.39 MB / 435.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.2411, allocations: 1.363 MB / 437.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.2413, allocations: 19.88 kB / 437.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002456/0.2416, allocations: 86.92 kB / 437.2 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004462/0.242, allocations: 154.6 kB / 437.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008884/0.2429, allocations: 463.3 kB / 437.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000924/0.2438, allocations: 0.9116 MB / 438.7 MB, free: 300 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004474/0.2443, allocations: 270.2 kB / 439 MB, free: 12 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004809/0.2447, allocations: 362.6 kB / 439.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004317/0.2452, allocations: 366.2 kB / 439.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001328/0.2453, allocations: 100 kB / 439.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/0.2455, allocations: 116 kB / 439.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001909/0.2457, allocations: 215.3 kB / 440.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003189/0.246, allocations: 318.4 kB / 440.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.2471, allocations: 1.065 MB / 441.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2471, allocations: 0 / 441.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2471, allocations: 0 / 441.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.2471, allocations: 0 / 441.5 MB, free: 13.5 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.002369/0.2495, allocations: 1.34 MB / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2495, allocations: 8.031 kB / 442.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007169/0.2502, allocations: 152.3 kB / 443 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.2514, allocations: 0.5919 MB / 443.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.063e-05/0.2514, allocations: 49.69 kB / 443.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.2515, allocations: 64.33 kB / 443.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/0.2529, allocations: 0.7108 MB / 444.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.2529, allocations: 7.938 kB / 444.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.2529, allocations: 23.98 kB / 444.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.253, allocations: 12 kB / 444.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.2541, allocations: 0.497 MB / 444.9 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.257, allocations: 1.579 MB / 446.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.258, allocations: 469.1 kB / 447 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/0.2585, allocations: 202 kB / 447.2 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-05/0.2586, allocations: 4.438 kB / 447.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007852/0.2593, allocations: 405 kB / 447.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=53): time 2.335e-06/0.2593, allocations: 0 / 447.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.002004/0.2613, allocations: 0.7251 MB / 448.3 MB, free: 6.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.2614, allocations: 123.2 kB / 448.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005742/0.262, allocations: 486.7 kB / 448.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.645e-05/0.2621, allocations: 41.7 kB / 448.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/0.2623, allocations: 340.9 kB / 449.3 MB, free: 5.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.2625, allocations: 166.6 kB / 449.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002001/0.2627, allocations: 126.3 kB / 449.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.2629, allocations: 370.8 kB / 449.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000511/0.2634, allocations: 215.3 kB / 450.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006945/0.2641, allocations: 468.4 kB / 450.6 MB, free: 4.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.2652, allocations: 0.62 MB / 451.2 MB, free: 3.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.2652, allocations: 0 / 451.2 MB, free: 3.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001386/0.2666, allocations: 0.6824 MB / 451.9 MB, free: 2.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2666, allocations: 8 kB / 451.9 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.2666, allocations: 8 kB / 451.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.2667, allocations: 8 kB / 451.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005703/0.2672, allocations: 135.7 kB / 452 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.814e-05/0.2673, allocations: 19.86 kB / 452.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004231/0.2677, allocations: 87.56 kB / 452.2 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.2677, allocations: 31.98 kB / 452.2 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005956/0.2683, allocations: 341.3 kB / 452.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006114/0.2689, allocations: 444.4 kB / 452.9 MB, free: 1.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009528/0.2699, allocations: 0.5849 MB / 453.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.37e-06/0.2699, allocations: 4 kB / 453.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.00118/0.2711, allocations: 0.6281 MB / 454.2 MB, free: 184 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.2711, allocations: 11.72 kB / 454.2 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.2711, allocations: 8 kB / 454.2 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.2711, allocations: 12 kB / 454.2 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004921/0.2716, allocations: 123.8 kB / 454.3 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.2716, allocations: 15.94 kB / 454.3 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.272, allocations: 75.64 kB / 454.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.2721, allocations: 27.98 kB / 454.4 MB, free: 15.91 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.0002111/0.2723, allocations: 238.6 kB / 454.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.807e-05/0.2724, allocations: 67.58 kB / 454.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.2738, allocations: 0.5895 MB / 455.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.2738, allocations: 3.984 kB / 455.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2738, allocations: 0 / 455.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.2739, allocations: 67.42 kB / 455.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.192e-05/0.274, allocations: 16 kB / 455.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/0.2743, allocations: 35.95 kB / 455.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.2744, allocations: 48.42 kB / 455.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001585/0.276, allocations: 0.6806 MB / 456.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00194/0.278, allocations: 1.058 MB / 457.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005235/0.2785, allocations: 247.9 kB / 457.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003774/0.2789, allocations: 330.9 kB / 457.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of Backend: time 4.21e-07/0.2789, allocations: 0 / 457.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.2805, allocations: 0.6876 MB / 458.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of SimCode: time 0.002001/0.2825, allocations: 1.55 MB / 460 MB, free: 10.22 MB / 366.1 MB Notification: Performance of Templates: time 0.01925/0.3018, allocations: 10.48 MB / 470.5 MB, free: 15.88 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.675261577001947]