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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [: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 trunk/package.mo): time 0.001212/0.001212, allocations: 196.4 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008718/0.0008718, allocations: 91.38 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/8.135e-06, allocations: 0 / 343.1 MB, free: 8.727 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09257/0.09259, allocations: 51.49 MB / 394.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2873/0.3799, allocations: 81.01 MB / 475.6 MB, free: 11.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001686/0.3801, allocations: 64.94 kB / 475.7 MB, free: 11.51 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0264/0.4065, allocations: 10.4 MB / 486.1 MB, free: 3.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.153e-05/0.4066, allocations: 12 kB / 486.1 MB, free: 3.871 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: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.001631/0.4082, allocations: 0.881 MB / 487 MB, free: 2.988 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.4083, allocations: 12.03 kB / 487 MB, free: 2.977 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007752/0.4091, allocations: 163 kB / 487.2 MB, free: 2.816 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008116/0.4099, allocations: 0.543 MB / 487.7 MB, free: 2.344 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.4099, allocations: 20 kB / 487.7 MB, free: 2.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.409e-05/0.41, allocations: 42.22 kB / 487.8 MB, free: 2.285 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007028/0.4107, allocations: 403.9 kB / 488.2 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007942/0.4115, allocations: 0.5311 MB / 488.7 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.4116, allocations: 8 kB / 488.7 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-05/0.4116, allocations: 0 / 488.7 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.4117, allocations: 12.75 kB / 488.7 MB, free: 1.645 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.4142, allocations: 1.888 MB / 490.6 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005428/0.4148, allocations: 358.2 kB / 490.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.415, allocations: 159.2 kB / 491.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.628e-05/0.4151, allocations: 16.41 kB / 491.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000417/0.4155, allocations: 272.6 kB / 491.4 MB, free: 15.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 2.514e-06/0.4155, allocations: 4 kB / 491.4 MB, free: 15.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.0007303/0.4163, allocations: 425.3 kB / 491.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.4163, allocations: 117.9 kB / 491.9 MB, free: 15.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004472/0.4168, allocations: 394.7 kB / 492.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/0.4169, allocations: 33.39 kB / 492.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.417, allocations: 261.1 kB / 492.6 MB, free: 14.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.4171, allocations: 147.5 kB / 492.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.4172, allocations: 0 / 492.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.4173, allocations: 376 kB / 493.1 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.4176, allocations: 148.1 kB / 493.2 MB, free: 14.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/0.418, allocations: 373.6 kB / 493.6 MB, free: 13.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.4183, allocations: 185.6 kB / 493.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.4183, allocations: 4 kB / 493.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008225/0.4191, allocations: 0.5449 MB / 494.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007321/0.4199, allocations: 2.516 MB / 496.9 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.4199, allocations: 11.91 kB / 496.9 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.4199, allocations: 12 kB / 496.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000595/0.4205, allocations: 155.3 kB / 497 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.4206, allocations: 11.94 kB / 497 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.4211, allocations: 83.48 kB / 497.1 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.923e-05/0.4211, allocations: 31.5 kB / 497.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.236e-06/0.4211, allocations: 4 kB / 497.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007362/0.4219, allocations: 445.6 kB / 497.6 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.4219, allocations: 12.12 kB / 497.6 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.4219, allocations: 11.91 kB / 497.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005252/0.4224, allocations: 138 kB / 497.8 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.4225, allocations: 19.92 kB / 497.8 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004082/0.4229, allocations: 55.67 kB / 497.8 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.4229, allocations: 27.23 kB / 497.9 MB, free: 9.668 MB / 362.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_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.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$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.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.0001819/0.4231, allocations: 141.8 kB / 498 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.4232, allocations: 59.33 kB / 498 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009225/0.4242, allocations: 456.9 kB / 498.5 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.4242, allocations: 4 kB / 498.5 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.4242, allocations: 0 / 498.5 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.4242, allocations: 7.984 kB / 498.5 MB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006764/0.4249, allocations: 0.5721 MB / 499.1 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.4249, allocations: 0 / 499.1 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004851/0.4254, allocations: 97.88 kB / 499.2 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/0.4254, allocations: 4 kB / 499.2 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.4255, allocations: 17.17 kB / 499.2 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.4255, allocations: 2.531 kB / 499.2 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4255, allocations: 0 / 499.2 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001009/0.4265, allocations: 0.7051 MB / 499.9 MB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.4266, allocations: 131.3 kB / 0.4883 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.836e-05/0.4267, allocations: 11.36 kB / 0.4883 GB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003866/0.4271, allocations: 43.97 kB / 0.4884 GB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.4272, allocations: 39 kB / 0.4884 GB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.514e-05/0.4273, allocations: 23.34 kB / 0.4884 GB, free: 7.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000313/0.4276, allocations: 298.1 kB / 0.4887 GB, free: 7.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008078/0.4284, allocations: 233.8 kB / 0.4889 GB, free: 7.418 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_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,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.0002109/0.4286, allocations: 131.9 kB / 0.4891 GB, free: 7.285 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.4297, allocations: 0.6932 MB / 0.4897 GB, free: 6.809 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4297, allocations: 4 kB / 0.4897 GB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003059/0.43, allocations: 218 kB / 0.4899 GB, free: 6.664 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.4304, allocations: 64.78 kB / 0.49 GB, free: 6.621 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.4323, allocations: 0.8528 MB / 0.4908 GB, free: 5.863 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007119/0.433, allocations: 0.9862 MB / 0.4918 GB, free: 4.863 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.433, allocations: 0 / 0.4918 GB, free: 4.863 MB / 362.7 MB Notification: Performance of Templates: time 0.01465/0.4477, allocations: 8.519 MB / 0.5001 GB, free: 12.43 MB / 378.7 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