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: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) [: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.0009757/0.0009757, allocations: 182.8 kB / 8.477 MB, free: 1.859 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.051/1.051, allocations: 205.2 MB / 214.1 MB, free: 13.84 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.0008607/0.0008607, allocations: 92.12 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08562/0.08652, allocations: 52.98 MB / 315.1 MB, free: 8.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.2717, allocations: 47.57 MB / 362.6 MB, free: 45.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07704/0.3488, allocations: 78.86 MB / 441.5 MB, free: 7.121 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001766/0.349, allocations: 67.97 kB / 441.6 MB, free: 7.055 MB / 330.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.02796/0.377, allocations: 10.74 MB / 452.3 MB, free: 12.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.3771, allocations: 12 kB / 452.3 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.3772, allocations: 79.06 kB / 452.4 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000731/0.378, allocations: 0.5213 MB / 452.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.378, allocations: 16 kB / 452.9 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.681e-05/0.3781, allocations: 36 kB / 453 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007003/0.3788, allocations: 398.5 kB / 453.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008749/0.3797, allocations: 0.5168 MB / 453.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.3797, allocations: 6.438 kB / 453.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.065e-05/0.3798, allocations: 4 kB / 453.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.3798, allocations: 15.98 kB / 453.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.3824, allocations: 1.812 MB / 455.7 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006025/0.3831, allocations: 364.4 kB / 456.1 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.3833, allocations: 162.2 kB / 456.2 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.791e-05/0.3834, allocations: 20.41 kB / 456.2 MB, free: 8.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003994/0.3838, allocations: 268.4 kB / 456.5 MB, free: 7.961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=53): time 3.256e-06/0.3838, allocations: 0 / 456.5 MB, free: 7.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.0006629/0.3845, allocations: 422.5 kB / 456.9 MB, free: 7.547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.3845, allocations: 115.2 kB / 457 MB, free: 7.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.3849, allocations: 373 kB / 457.4 MB, free: 7.043 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/0.385, allocations: 33.62 kB / 457.4 MB, free: 7.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3851, allocations: 244.5 kB / 457.7 MB, free: 6.762 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.3852, allocations: 157.7 kB / 457.8 MB, free: 6.605 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.3853, allocations: 4 kB / 457.8 MB, free: 6.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3854, allocations: 362.8 kB / 458.2 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.3856, allocations: 149.3 kB / 458.3 MB, free: 6.094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003389/0.386, allocations: 365 kB / 458.7 MB, free: 5.641 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/0.3863, allocations: 187.8 kB / 458.9 MB, free: 5.457 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3863, allocations: 4 kB / 458.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007885/0.3871, allocations: 0.5168 MB / 459.4 MB, free: 4.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006671/0.3878, allocations: 2.535 MB / 461.9 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.3878, allocations: 4 kB / 461.9 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.3878, allocations: 12 kB / 461.9 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005528/0.3884, allocations: 151.7 kB / 462.1 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/0.3884, allocations: 19.84 kB / 462.1 MB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004163/0.3888, allocations: 88.44 kB / 462.2 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.135e-05/0.3889, allocations: 27.98 kB / 462.2 MB, free: 1.902 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.713e-06/0.3889, allocations: 4 kB / 462.2 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006377/0.3895, allocations: 441.5 kB / 462.6 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3895, allocations: 8 kB / 462.7 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/0.3895, allocations: 8 kB / 462.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000474/0.39, allocations: 140.2 kB / 462.8 MB, free: 1.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.39, allocations: 15.91 kB / 462.8 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.3904, allocations: 63.59 kB / 462.9 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.3904, allocations: 24 kB / 462.9 MB, free: 1.219 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.0001301/0.3906, allocations: 149.9 kB / 463 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-05/0.3907, allocations: 55.34 kB / 463.1 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007776/0.3914, allocations: 448.8 kB / 463.5 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3915, allocations: 8 kB / 463.5 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3915, allocations: 0 / 463.5 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3915, allocations: 0 / 463.5 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005128/0.392, allocations: 0.5565 MB / 464.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.392, allocations: 0 / 464.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004742/0.3925, allocations: 107.8 kB / 464.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3925, allocations: 8 kB / 464.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/0.3926, allocations: 11.98 kB / 464.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.3926, allocations: 6.016 kB / 464.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.3926, allocations: 0 / 464.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009833/0.3936, allocations: 0.6909 MB / 464.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001378/0.395, allocations: 1.308 MB / 466.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.467e-05/0.3951, allocations: 132.4 kB / 466.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.315e-05/0.3952, allocations: 12 kB / 466.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003624/0.3955, allocations: 47.95 kB / 466.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.569e-05/0.3956, allocations: 40.38 kB / 466.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.3957, allocations: 19.98 kB / 466.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002712/0.396, allocations: 275.2 kB / 466.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001754/0.3977, allocations: 219.1 kB / 467 MB, free: 13.05 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.000162/0.3979, allocations: 127.2 kB / 467.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009506/0.3988, allocations: 0.6937 MB / 467.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3989, allocations: 0 / 467.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.3992, allocations: 213.6 kB / 468 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3995, allocations: 50.97 kB / 468 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.4014, allocations: 0.839 MB / 468.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006603/0.4021, allocations: 0.9699 MB / 469.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4021, allocations: 0 / 469.8 MB, free: 10.09 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_TotalHarmonicDistortion_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_TotalHarmonicDistortion.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat does not exist to compare? outputFormat=mat