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.001297/0.001297, allocations: 114.3 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 206.8 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2183, allocations: 50.55 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004456/0.2228, allocations: 3.731 MB / 413.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.225, allocations: 1.391 MB / 415.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003766/0.2254, allocations: 23.81 kB / 415.1 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.2257, allocations: 86.92 kB / 415.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003919/0.2261, allocations: 146.7 kB / 415.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008266/0.2269, allocations: 459.3 kB / 415.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007362/0.2276, allocations: 0.9078 MB / 416.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004824/0.2281, allocations: 393.9 kB / 417.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003686/0.2285, allocations: 354.6 kB / 417.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.2289, allocations: 370.2 kB / 417.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.229, allocations: 100 kB / 417.9 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.2292, allocations: 108 kB / 418 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.2293, allocations: 207.4 kB / 418.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003084/0.2296, allocations: 417.9 kB / 418.6 MB, free: 8.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008802/0.2305, allocations: 1.055 MB / 419.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.2305, allocations: 0 / 419.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.2305, allocations: 0 / 419.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.916e-06/0.2306, allocations: 0 / 419.6 MB, free: 7.855 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.001715/0.2323, allocations: 1.099 MB / 420.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.851e-05/0.2323, allocations: 11.97 kB / 420.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006488/0.233, allocations: 144.4 kB / 420.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009497/0.2339, allocations: 0.6729 MB / 421.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.88e-05/0.234, allocations: 49.69 kB / 421.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.963e-05/0.2341, allocations: 68.36 kB / 421.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.2352, allocations: 0.6567 MB / 422.3 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.2352, allocations: 3.953 kB / 422.3 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.7e-05/0.2353, allocations: 32 kB / 422.4 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.2353, allocations: 12 kB / 422.4 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.2364, allocations: 0.4931 MB / 422.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002684/0.2391, allocations: 1.898 MB / 424.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009178/0.24, allocations: 485.2 kB / 425.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004401/0.2405, allocations: 218.1 kB / 425.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.37e-05/0.2405, allocations: 8.422 kB / 425.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000681/0.2412, allocations: 397.1 kB / 425.8 MB, free: 1.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=53): time 2.344e-06/0.2412, allocations: 0 / 425.8 MB, free: 1.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.001572/0.2428, allocations: 0.7367 MB / 426.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.2429, allocations: 111.2 kB / 426.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004767/0.2434, allocations: 494.8 kB / 427.2 MB, free: 64 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.2434, allocations: 45.7 kB / 427.2 MB, free: 12 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.2436, allocations: 344.9 kB / 427.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.2438, allocations: 170.6 kB / 427.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/0.2439, allocations: 126.3 kB / 427.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.2441, allocations: 374.7 kB / 428.2 MB, free: 15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004612/0.2446, allocations: 211.4 kB / 428.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005663/0.2451, allocations: 421 kB / 428.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00099/0.2461, allocations: 0.6225 MB / 429.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.2461, allocations: 0 / 429.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001273/0.2474, allocations: 0.6816 MB / 430.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2474, allocations: 12.16 kB / 430.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.2475, allocations: 4 kB / 430.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.2475, allocations: 12 kB / 430.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.248, allocations: 135.7 kB / 430.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.2481, allocations: 19.92 kB / 430.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003828/0.2484, allocations: 83.58 kB / 430.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-05/0.2485, allocations: 31.98 kB / 430.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005287/0.249, allocations: 345.3 kB / 430.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004771/0.2495, allocations: 393 kB / 431.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000836/0.2504, allocations: 0.573 MB / 431.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.955e-06/0.2504, allocations: 4 kB / 431.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001073/0.2515, allocations: 0.639 MB / 432.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.2515, allocations: 11.94 kB / 432.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.2515, allocations: 4 kB / 432.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.2515, allocations: 12 kB / 432.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.252, allocations: 124.3 kB / 432.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.252, allocations: 19.88 kB / 432.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.2524, allocations: 71.64 kB / 432.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.2524, allocations: 31.98 kB / 432.6 MB, free: 10.21 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.0001621/0.2526, allocations: 234.6 kB / 432.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.164e-05/0.2527, allocations: 63.58 kB / 432.9 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.2539, allocations: 0.5912 MB / 433.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.2539, allocations: 7.938 kB / 433.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2539, allocations: 0 / 433.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.646e-05/0.254, allocations: 140.6 kB / 433.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.242e-05/0.2541, allocations: 12 kB / 433.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003267/0.2544, allocations: 39.95 kB / 433.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.2545, allocations: 44.5 kB / 433.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001424/0.256, allocations: 0.6861 MB / 434.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001717/0.2577, allocations: 1.06 MB / 435.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004759/0.2582, allocations: 268.3 kB / 435.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003368/0.2585, allocations: 338.9 kB / 436.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of Backend: time 4.91e-07/0.2585, allocations: 0 / 436.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.26, allocations: 0.7182 MB / 436.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of SimCode: time 0.001641/0.2617, allocations: 1.544 MB / 438.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of Templates: time 0.01416/0.2759, allocations: 8.963 MB / 447.3 MB, free: 11.43 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