Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009688/0.0009689, allocations: 188 kB / 8.135 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 221.4 MB / 229.9 MB, free: 3.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009038/0.0009037, allocations: 103.1 kB / 280.8 MB, free: 1.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.366e-06/8.386e-06, allocations: 7.938 kB / 336.5 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1948, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08522/0.2801, allocations: 80.18 MB / 467.1 MB, free: 6.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001698/0.2803, allocations: 73.69 kB / 467.2 MB, free: 6.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02891/0.3092, allocations: 10.1 MB / 477.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.665e-05/0.3093, allocations: 16 kB / 477.3 MB, free: 12.42 MB / 362.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.001483/0.3108, allocations: 0.8515 MB / 478.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3108, allocations: 12.03 kB / 478.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.311, allocations: 83.06 kB / 478.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007584/0.3118, allocations: 0.5254 MB / 478.7 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.3118, allocations: 20 kB / 478.8 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.928e-05/0.3119, allocations: 40 kB / 478.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007379/0.3126, allocations: 394.6 kB / 479.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008812/0.3135, allocations: 0.5419 MB / 479.7 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.3136, allocations: 3.906 kB / 479.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.285e-05/0.3136, allocations: 0 / 479.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.3136, allocations: 16 kB / 479.8 MB, free: 9.828 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002859/0.3165, allocations: 1.856 MB / 481.6 MB, free: 7.918 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005958/0.3171, allocations: 372.4 kB / 482 MB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.3174, allocations: 162.2 kB / 482.1 MB, free: 7.383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.564e-05/0.3174, allocations: 12.42 kB / 482.1 MB, free: 7.371 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004316/0.3179, allocations: 276.4 kB / 482.4 MB, free: 7.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 2.084e-06/0.3179, allocations: 0 / 482.4 MB, free: 7.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.0007308/0.3186, allocations: 422.5 kB / 482.8 MB, free: 6.672 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.3187, allocations: 117.2 kB / 482.9 MB, free: 6.535 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000407/0.3191, allocations: 373 kB / 483.3 MB, free: 6.164 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/0.3192, allocations: 29.7 kB / 483.3 MB, free: 6.129 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.3193, allocations: 252.3 kB / 483.6 MB, free: 5.879 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.3194, allocations: 157.8 kB / 483.7 MB, free: 5.723 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.3195, allocations: 0 / 483.7 MB, free: 5.723 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3196, allocations: 370.7 kB / 484.1 MB, free: 5.352 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.3199, allocations: 145.3 kB / 484.2 MB, free: 5.211 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/0.3202, allocations: 359.8 kB / 484.6 MB, free: 4.762 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002995/0.3206, allocations: 192.7 kB / 484.8 MB, free: 4.578 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3206, allocations: 0 / 484.8 MB, free: 4.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008245/0.3214, allocations: 0.5322 MB / 485.3 MB, free: 4.039 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006982/0.3221, allocations: 2.512 MB / 487.8 MB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3221, allocations: 12 kB / 487.8 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.3221, allocations: 12 kB / 487.8 MB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006026/0.3228, allocations: 155.7 kB / 488 MB, free: 1.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.3228, allocations: 11.94 kB / 488 MB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/0.3232, allocations: 79.55 kB / 488.1 MB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.3233, allocations: 31.91 kB / 488.1 MB, free: 1.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.733e-06/0.3233, allocations: 7.281 kB / 488.1 MB, free: 1.027 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007093/0.324, allocations: 439 kB / 488.6 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.324, allocations: 12.72 kB / 488.6 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.3241, allocations: 12 kB / 488.6 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005069/0.3246, allocations: 139.7 kB / 488.7 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.3246, allocations: 8 kB / 488.7 MB, free: 444 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003957/0.325, allocations: 71.44 kB / 488.8 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.325, allocations: 35.66 kB / 488.8 MB, free: 340 kB / 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.0001511/0.3252, allocations: 144.3 kB / 489 MB, free: 192 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-05/0.3253, allocations: 51.34 kB / 489 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008068/0.3261, allocations: 456.7 kB / 489.5 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3261, allocations: 4 kB / 489.5 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3261, allocations: 0 / 489.5 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3261, allocations: 0 / 489.5 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000602/0.3268, allocations: 0.5564 MB / 490 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3268, allocations: 0 / 490 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004939/0.3273, allocations: 103.9 kB / 490.1 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3273, allocations: 0 / 490.1 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/0.3273, allocations: 19.92 kB / 490.1 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3273, allocations: 4 kB / 490.2 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3274, allocations: 0 / 490.2 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001022/0.3284, allocations: 0.6909 MB / 490.8 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.774e-05/0.3285, allocations: 136.3 kB / 491 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.77e-05/0.3286, allocations: 11.94 kB / 491 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/0.329, allocations: 47.95 kB / 491 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.3291, allocations: 40.38 kB / 491.1 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.3291, allocations: 23.98 kB / 491.1 MB, free: 13.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003029/0.3295, allocations: 271.2 kB / 491.4 MB, free: 13.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007185/0.3302, allocations: 227 kB / 491.6 MB, free: 13.49 MB / 378.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.0001632/0.3304, allocations: 120.9 kB / 491.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.3314, allocations: 0.6847 MB / 492.4 MB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3314, allocations: 7.938 kB / 492.4 MB, free: 12.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.3317, allocations: 213.6 kB / 492.6 MB, free: 12.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.3321, allocations: 54.69 kB / 492.7 MB, free: 12.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.3338, allocations: 0.8311 MB / 493.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005885/0.3344, allocations: 0.9773 MB / 494.5 MB, free: 10.54 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3344, allocations: 4 kB / 494.5 MB, free: 10.54 MB / 378.7 MB Notification: Performance of Templates: time 0.01386/0.3483, allocations: 8.229 MB / 0.4909 GB, free: 2.344 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches