Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009612/0.0009612, allocations: 181.5 kB / 8.478 MB, free: 1.852 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.184/1.184, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008912/0.0008913, allocations: 94.25 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.01e-05/1.02e-05, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 47.58 MB / 362.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2882/0.396, allocations: 78.86 MB / 441.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.3963, allocations: 64.33 kB / 441.5 MB, free: 10.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02647/0.4227, allocations: 9.858 MB / 451.3 MB, free: 8.355 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.83e-05/0.4228, allocations: 15.72 kB / 451.3 MB, free: 8.352 MB / 314.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.001373/0.4242, allocations: 0.8436 MB / 452.2 MB, free: 7.707 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.4242, allocations: 11.47 kB / 452.2 MB, free: 7.707 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.4244, allocations: 77.22 kB / 452.3 MB, free: 7.668 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007038/0.4251, allocations: 0.5368 MB / 452.8 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.4251, allocations: 18.91 kB / 452.8 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.443e-05/0.4252, allocations: 38.27 kB / 452.9 MB, free: 7.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006655/0.4259, allocations: 395 kB / 453.2 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007349/0.4266, allocations: 0.5091 MB / 453.8 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.4267, allocations: 7.688 kB / 453.8 MB, free: 7.141 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.194e-05/0.4267, allocations: 3.938 kB / 453.8 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4267, allocations: 11.53 kB / 453.8 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00249/0.4292, allocations: 1.822 MB / 455.6 MB, free: 6.234 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.4298, allocations: 359.7 kB / 456 MB, free: 6.188 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.43, allocations: 161.8 kB / 456.1 MB, free: 6.176 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.19e-05/0.4301, allocations: 12.44 kB / 456.1 MB, free: 6.172 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003946/0.4305, allocations: 270.8 kB / 456.4 MB, free: 6.074 MB / 314.7 MB Notification: Performance of pre-optimization done (n=53): time 2.034e-06/0.4305, allocations: 3.938 kB / 456.4 MB, free: 6.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=53): time 0.0007308/0.4312, allocations: 423.6 kB / 456.8 MB, free: 5.973 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.4313, allocations: 114.4 kB / 456.9 MB, free: 5.844 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000466/0.4318, allocations: 377 kB / 457.3 MB, free: 5.703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.4318, allocations: 31.91 kB / 457.3 MB, free: 5.668 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.432, allocations: 241.4 kB / 457.5 MB, free: 5.488 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.4321, allocations: 160.9 kB / 457.7 MB, free: 5.375 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.4321, allocations: 0 / 457.7 MB, free: 5.375 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.237e-05/0.4322, allocations: 360.5 kB / 458.1 MB, free: 5.047 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.4324, allocations: 153.2 kB / 458.2 MB, free: 5.043 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.4327, allocations: 367.3 kB / 458.6 MB, free: 4.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.433, allocations: 189.1 kB / 458.8 MB, free: 4.734 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.433, allocations: 3.688 kB / 458.8 MB, free: 4.734 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007126/0.4337, allocations: 0.5217 MB / 459.3 MB, free: 4.594 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004237/0.4341, allocations: 2.537 MB / 461.8 MB, free: 1.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.4342, allocations: 3.812 kB / 461.8 MB, free: 1.926 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4342, allocations: 11.12 kB / 461.8 MB, free: 1.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/0.4347, allocations: 148.7 kB / 462 MB, free: 1.891 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.4347, allocations: 19.03 kB / 462 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004307/0.4352, allocations: 84.62 kB / 462.1 MB, free: 1.844 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.195e-05/0.4352, allocations: 27.83 kB / 462.1 MB, free: 1.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.812e-06/0.4352, allocations: 2.594 kB / 462.1 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007309/0.436, allocations: 440.7 kB / 462.5 MB, free: 1.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.436, allocations: 6.781 kB / 462.5 MB, free: 1.766 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.436, allocations: 13.91 kB / 462.6 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004938/0.4365, allocations: 136.4 kB / 462.7 MB, free: 1.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.4365, allocations: 17.16 kB / 462.7 MB, free: 1.723 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/0.4369, allocations: 64.22 kB / 462.8 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.437, allocations: 29.16 kB / 462.8 MB, free: 1.691 MB / 314.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.0001468/0.4371, allocations: 143.2 kB / 462.9 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.002e-05/0.4372, allocations: 57.72 kB / 463 MB, free: 1.531 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000789/0.438, allocations: 446.3 kB / 463.4 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.607e-06/0.438, allocations: 5.125 kB / 463.4 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.438, allocations: 1.281 kB / 463.4 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.4381, allocations: 4 kB / 463.4 MB, free: 1.418 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005344/0.4386, allocations: 0.5531 MB / 464 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4386, allocations: 9.156 kB / 464 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.4391, allocations: 107.6 kB / 464.1 MB, free: 1.082 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.4391, allocations: 2.656 kB / 464.1 MB, free: 1.082 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.425e-05/0.4392, allocations: 8.016 kB / 464.1 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.4392, allocations: 5.188 kB / 464.1 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4392, allocations: 5.266 kB / 464.1 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00106/0.4402, allocations: 0.6924 MB / 464.8 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.778e-05/0.4403, allocations: 136.8 kB / 465 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.4404, allocations: 10.58 kB / 465 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.4408, allocations: 49.73 kB / 465 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.4409, allocations: 37 kB / 465 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/0.441, allocations: 20.17 kB / 465.1 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003142/0.4413, allocations: 276.5 kB / 465.3 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008138/0.4421, allocations: 215.9 kB / 465.5 MB, free: 0.5938 MB / 314.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.0001934/0.4423, allocations: 132 kB / 465.7 MB, free: 496 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.4435, allocations: 0.6792 MB / 466.4 MB, free: 428 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.4436, allocations: 0.8125 kB / 466.4 MB, free: 428 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004324/0.444, allocations: 217.8 kB / 466.6 MB, free: 408 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.4444, allocations: 53 kB / 466.6 MB, free: 396 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.4462, allocations: 0.8374 MB / 467.5 MB, free: 28 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007337/0.4469, allocations: 0.9668 MB / 468.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4469, allocations: 0.7188 kB / 468.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of Templates: time 0.01845/0.4654, allocations: 8.248 MB / 476.7 MB, free: 11.23 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins/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_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches