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.001209/0.001209, allocations: 98.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001475/0.001475, allocations: 206.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002622/0.0002623, allocations: 8 kB / 306.6 MB, free: 1.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1365, allocations: 51.5 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004471/0.141, allocations: 3.084 MB / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002665/0.1437, allocations: 1.247 MB / 362.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005267/0.1443, allocations: 12 kB / 362.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002839/0.1446, allocations: 55.44 kB / 362.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005722/0.1452, allocations: 119.6 kB / 362.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009448/0.1461, allocations: 263.5 kB / 362.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007571/0.1469, allocations: 0.4951 MB / 363.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004722/0.1474, allocations: 284.8 kB / 363.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003832/0.1478, allocations: 230.9 kB / 363.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.1481, allocations: 270.5 kB / 364.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.469e-05/0.1482, allocations: 24 kB / 364.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.1484, allocations: 43.94 kB / 364.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.1485, allocations: 111.5 kB / 364.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.1487, allocations: 157.3 kB / 364.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007242/0.1494, allocations: 0.7562 MB / 365.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1494, allocations: 0 / 365.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1494, allocations: 0 / 365.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.639e-06/0.1494, allocations: 0 / 365.2 MB, free: 6.77 MB / 302.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.001804/0.1512, allocations: 0.9416 MB / 366.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1513, allocations: 8.031 kB / 366.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006983/0.152, allocations: 158.9 kB / 366.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.153, allocations: 0.6226 MB / 366.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/0.1531, allocations: 49.27 kB / 367 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.934e-05/0.1532, allocations: 60 kB / 367 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.1545, allocations: 0.6644 MB / 367.7 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.1545, allocations: 7.844 kB / 367.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/0.1546, allocations: 35.98 kB / 367.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.1546, allocations: 12 kB / 367.7 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.1558, allocations: 0.5322 MB / 368.3 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003235/0.159, allocations: 1.937 MB / 370.2 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.1602, allocations: 0.5361 MB / 370.7 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-05/0.1602, allocations: 8.422 kB / 370.7 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007693/0.161, allocations: 405.1 kB / 371.1 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 2.144e-06/0.161, allocations: 4 kB / 371.1 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.2509/0.4119, allocations: 0.7755 MB / 371.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.4121, allocations: 115.6 kB / 372 MB, free: 19.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009614/0.4131, allocations: 471.3 kB / 372.5 MB, free: 18.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.4132, allocations: 44.58 kB / 372.5 MB, free: 18.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003843/0.4136, allocations: 337.4 kB / 372.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.4138, allocations: 162.5 kB / 373 MB, free: 18.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.4139, allocations: 14.28 kB / 373 MB, free: 18.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.414, allocations: 369.8 kB / 373.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006077/0.4147, allocations: 222.9 kB / 373.6 MB, free: 18.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007935/0.4155, allocations: 430.9 kB / 374 MB, free: 18.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007054/0.4162, allocations: 256.6 kB / 374.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.4162, allocations: 1.75 kB / 374.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00166/0.4179, allocations: 0.7195 MB / 375 MB, free: 18.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004686/0.4183, allocations: 2.528 MB / 377.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.4184, allocations: 6.531 kB / 377.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.509e-05/0.4184, allocations: 14 kB / 377.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006179/0.419, allocations: 142.4 kB / 377.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.644e-05/0.4191, allocations: 17.36 kB / 377.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005362/0.4196, allocations: 92.25 kB / 377.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.571e-05/0.4197, allocations: 29.59 kB / 377.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.4197, allocations: 4.156 kB / 377.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001157/0.4209, allocations: 0.5792 MB / 378.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.4209, allocations: 6.875 kB / 378.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.4209, allocations: 13.56 kB / 378.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/0.4214, allocations: 133.9 kB / 378.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-05/0.4214, allocations: 17.92 kB / 378.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003667/0.4218, allocations: 76.53 kB / 378.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-05/0.4219, allocations: 32.02 kB / 378.7 MB, free: 15.09 MB / 302.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,$PRE.thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$PRE.thd1.harmonic.mean1.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003997/0.4223, allocations: 310.6 kB / 379 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.189e-05/0.4224, allocations: 57.81 kB / 379.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001428/0.4238, allocations: 0.6312 MB / 379.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.4238, allocations: 5.562 kB / 379.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.4238, allocations: 4.578 kB / 379.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.4238, allocations: 4.578 kB / 379.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008851/0.4247, allocations: 0.6461 MB / 380.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.4247, allocations: 0 / 380.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.4252, allocations: 100.2 kB / 380.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4252, allocations: 2.812 kB / 380.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/0.4253, allocations: 17.55 kB / 380.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.4253, allocations: 2.5 kB / 380.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.4253, allocations: 1 kB / 380.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.4271, allocations: 0.9331 MB / 381.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.4272, allocations: 135.8 kB / 381.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.559e-05/0.4273, allocations: 25.31 kB / 381.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003337/0.4277, allocations: 55.17 kB / 381.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.4278, allocations: 42.39 kB / 381.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/0.4278, allocations: 21.09 kB / 381.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003951/0.4282, allocations: 326.6 kB / 382 MB, free: 13.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4282, allocations: 0 / 382 MB, free: 13.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009148/0.4292, allocations: 242.6 kB / 382.2 MB, free: 13.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x) * Number of discrete variables: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid) * Number of discrete states: 6 (thdRMS.rootMeanSquare.mean.x,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean1.x,thd1.rootMeanSquare.mean.x,thd1.harmonic.mean2.x,thd1.harmonic.mean1.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001971/0.4294, allocations: 132.5 kB / 382.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.4317, allocations: 0.8762 MB / 383.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.4317, allocations: 0 / 383.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007254/0.4324, allocations: 292.3 kB / 383.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.433, allocations: 71.8 kB / 383.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.4354, allocations: 1.396 MB / 385 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.4359, allocations: 0.9278 MB / 385.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004668/0.4364, allocations: 114.6 kB / 386 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.4366, allocations: 53.56 kB / 386.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4366, allocations: 0.9688 kB / 386.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of Templates: time 0.01448/0.4511, allocations: 5.468 MB / 391.5 MB, free: 10 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches