Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002387/0.002392, allocations: 179.6 kB / 8.151 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.804/1.804, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001286/0.001285, allocations: 81.61 kB / 261.8 MB, free: 13.65 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.298e-05/1.309e-05, allocations: 4 kB / 314.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2345, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.123/0.3576, allocations: 78.87 MB / 440.7 MB, free: 7.215 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.3579, allocations: 68.75 kB / 440.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0441/0.402, allocations: 9.863 MB / 450.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.08e-05/0.4021, allocations: 20.2 kB / 450.6 MB, free: 13.3 MB / 346.7 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.002503/0.4047, allocations: 0.8472 MB / 451.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4047, allocations: 8.031 kB / 451.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002668/0.405, allocations: 83.06 kB / 451.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.4063, allocations: 0.5213 MB / 452.1 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.354e-05/0.4064, allocations: 16 kB / 452.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.4065, allocations: 47.98 kB / 452.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001361/0.4079, allocations: 390.5 kB / 452.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.4094, allocations: 0.513 MB / 453.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.273e-05/0.4094, allocations: 3.906 kB / 453.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-05/0.4095, allocations: 8 kB / 453.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.4095, allocations: 13.03 kB / 453.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005656/0.4152, allocations: 1.816 MB / 454.9 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.4164, allocations: 364.4 kB / 455.3 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004634/0.4169, allocations: 158.2 kB / 455.4 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.439e-05/0.417, allocations: 12.42 kB / 455.4 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007612/0.4178, allocations: 272.4 kB / 455.7 MB, free: 8.051 MB / 346.7 MB Notification: Performance of pre-optimization done (n=53): time 7.293e-06/0.4178, allocations: 7.922 kB / 455.7 MB, free: 8.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.001329/0.4191, allocations: 422.5 kB / 456.1 MB, free: 7.629 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.4192, allocations: 115.2 kB / 456.2 MB, free: 7.488 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007599/0.42, allocations: 373 kB / 456.6 MB, free: 7.121 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.64e-05/0.4201, allocations: 33.7 kB / 456.6 MB, free: 7.082 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002208/0.4203, allocations: 275.5 kB / 456.9 MB, free: 6.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.4205, allocations: 161.7 kB / 457 MB, free: 6.652 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.4206, allocations: 0 / 457 MB, free: 6.652 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4208, allocations: 334.8 kB / 457.4 MB, free: 6.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004527/0.4212, allocations: 145.3 kB / 457.5 MB, free: 6.176 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006394/0.4219, allocations: 364.9 kB / 457.9 MB, free: 5.727 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005421/0.4224, allocations: 194 kB / 458.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4224, allocations: 0 / 458.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001406/0.4239, allocations: 0.5 MB / 458.6 MB, free: 5.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009887/0.4249, allocations: 2.528 MB / 461.1 MB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.4249, allocations: 8 kB / 461.1 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.624e-05/0.4249, allocations: 12 kB / 461.1 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.4261, allocations: 147.8 kB / 461.3 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.208e-05/0.4262, allocations: 19.94 kB / 461.3 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006903/0.4269, allocations: 83.48 kB / 461.4 MB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.06e-05/0.4269, allocations: 28 kB / 461.4 MB, free: 2.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.427, allocations: 4 kB / 461.4 MB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001252/0.4282, allocations: 441.9 kB / 461.8 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.4283, allocations: 8 kB / 461.8 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.4283, allocations: 12 kB / 461.8 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009568/0.4292, allocations: 136.3 kB / 462 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.075e-05/0.4293, allocations: 23.83 kB / 462 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005815/0.4299, allocations: 55.67 kB / 462 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.527e-05/0.43, allocations: 31.98 kB / 462.1 MB, free: 1.328 MB / 346.7 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,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean2.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2) * Number of discrete 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.0002338/0.4302, allocations: 60.05 kB / 462.1 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.4304, allocations: 51.34 kB / 462.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.4318, allocations: 452.8 kB / 462.6 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.4318, allocations: 4 kB / 462.6 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4319, allocations: 0 / 462.6 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.4319, allocations: 3.984 kB / 462.6 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009537/0.4328, allocations: 0.5603 MB / 463.2 MB, free: 168 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4329, allocations: 7.938 kB / 463.2 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000939/0.4338, allocations: 103.9 kB / 463.3 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.4338, allocations: 0 / 463.3 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.496e-05/0.4339, allocations: 11.98 kB / 463.3 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.4339, allocations: 4 kB / 463.3 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.4339, allocations: 0 / 463.3 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001924/0.4359, allocations: 0.6909 MB / 464 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.4361, allocations: 140.3 kB / 464.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.4362, allocations: 8 kB / 464.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007117/0.437, allocations: 62.02 kB / 464.2 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.4371, allocations: 36.38 kB / 464.3 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-05/0.4372, allocations: 19.98 kB / 464.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005322/0.4378, allocations: 275.2 kB / 464.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001128/0.4389, allocations: 219.1 kB / 464.8 MB, free: 14.56 MB / 362.7 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: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 47 * 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.0002588/0.4392, allocations: 123.1 kB / 464.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.441, allocations: 0.672 MB / 465.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4411, allocations: 0 / 465.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000595/0.4417, allocations: 221.6 kB / 465.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006416/0.4423, allocations: 61.17 kB / 465.8 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.4453, allocations: 0.8562 MB / 466.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009632/0.4463, allocations: 0.9648 MB / 467.6 MB, free: 11.6 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4463, allocations: 0 / 467.6 MB, free: 11.6 MB / 362.7 MB Notification: Performance of Templates: time 0.01679/0.4631, allocations: 7.366 MB / 475 MB, free: 4.258 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches