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: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009757/0.0009758, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 227.2 MB / 245 MB, free: 7.672 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008896/0.0008896, allocations: 95.7 kB / 297.3 MB, free: 6.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002027/0.0002028, allocations: 4 kB / 358 MB, free: 9.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1737, allocations: 51.47 MB / 409.5 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08208/0.2558, allocations: 81.82 MB / 491.3 MB, free: 8.812 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/0.256, allocations: 67.97 kB / 491.4 MB, free: 8.746 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02733/0.2834, allocations: 10.81 MB / 0.4904 GB, free: 13.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2834, allocations: 0 / 0.4904 GB, free: 13.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.022e-05/0.2834, allocations: 12 kB / 0.4904 GB, free: 13.89 MB / 378.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.001547/0.285, allocations: 0.9611 MB / 0.4914 GB, free: 12.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.285, allocations: 12.03 kB / 0.4914 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.2851, allocations: 98.5 kB / 0.4915 GB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006197/0.2858, allocations: 162.9 kB / 0.4916 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000707/0.2865, allocations: 0.541 MB / 0.4921 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.994e-05/0.2865, allocations: 53.25 kB / 0.4922 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.642e-05/0.2866, allocations: 67.92 kB / 0.4923 GB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.2878, allocations: 0.6683 MB / 0.4929 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.2878, allocations: 7.938 kB / 0.4929 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.477e-05/0.2879, allocations: 24 kB / 0.4929 GB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.2879, allocations: 16 kB / 0.493 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.289, allocations: 0.5478 MB / 0.4935 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.2918, allocations: 2.026 MB / 0.4955 GB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009692/0.2928, allocations: 0.5314 MB / 0.496 GB, free: 7.973 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.2928, allocations: 8.438 kB / 0.496 GB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006824/0.2935, allocations: 423.3 kB / 0.4964 GB, free: 7.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=53): time 1.853e-06/0.2935, allocations: 0 / 0.4964 GB, free: 7.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.001513/0.2951, allocations: 0.799 MB / 0.4972 GB, free: 6.738 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.2951, allocations: 123.2 kB / 0.4973 GB, free: 6.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004506/0.2956, allocations: 429.2 kB / 0.4977 GB, free: 6.164 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.2956, allocations: 45.7 kB / 0.4978 GB, free: 6.113 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.2959, allocations: 332.3 kB / 0.4981 GB, free: 5.785 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.296, allocations: 157.8 kB / 0.4982 GB, free: 5.629 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.296, allocations: 16 kB / 0.4982 GB, free: 5.613 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.2961, allocations: 366.8 kB / 0.4986 GB, free: 5.246 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004549/0.2966, allocations: 233.2 kB / 0.4988 GB, free: 5.016 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000549/0.2972, allocations: 453 kB / 0.4992 GB, free: 4.484 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004844/0.2976, allocations: 268 kB / 0.4995 GB, free: 4.227 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.2977, allocations: 8 kB / 0.4995 GB, free: 4.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001207/0.2989, allocations: 0.7415 MB / 0.5002 GB, free: 3.473 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007124/0.2996, allocations: 2.537 MB / 0.5027 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.2996, allocations: 8 kB / 0.5027 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.2996, allocations: 8 kB / 0.5027 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005007/0.3001, allocations: 143.8 kB / 0.5029 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.3002, allocations: 15.94 kB / 0.5029 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.3006, allocations: 91.48 kB / 0.503 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.3006, allocations: 31.94 kB / 0.503 GB, free: 460 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/0.3006, allocations: 6.5 kB / 0.503 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1301/0.4308, allocations: 0.5914 MB / 0.5036 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.4308, allocations: 7.234 kB / 0.5036 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.4308, allocations: 11.31 kB / 0.5036 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005548/0.4314, allocations: 133.4 kB / 0.5037 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.725e-05/0.4314, allocations: 14.66 kB / 0.5037 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.4319, allocations: 78.3 kB / 0.5038 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-05/0.432, allocations: 29.09 kB / 0.5038 GB, free: 91.59 MB / 378.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 () * Number of clocked 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.0004196/0.4324, allocations: 312.2 kB / 0.5041 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.4325, allocations: 61.34 kB / 0.5042 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001332/0.4339, allocations: 0.6238 MB / 0.5048 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.4339, allocations: 6.219 kB / 0.5048 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.4339, allocations: 4.531 kB / 0.5048 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.4339, allocations: 2.625 kB / 0.5048 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007028/0.4346, allocations: 0.6542 MB / 0.5055 GB, free: 91.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.4347, allocations: 2.109 kB / 0.5055 GB, free: 91.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00044/0.4351, allocations: 96.62 kB / 0.5056 GB, free: 91.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.4351, allocations: 5.438 kB / 0.5056 GB, free: 91.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.276e-05/0.4352, allocations: 15.22 kB / 0.5056 GB, free: 91.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.4352, allocations: 2.219 kB / 0.5056 GB, free: 91.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4352, allocations: 2.406 kB / 0.5056 GB, free: 91.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.4368, allocations: 0.9371 MB / 0.5065 GB, free: 91.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.4369, allocations: 133.3 kB / 0.5066 GB, free: 91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.099e-05/0.437, allocations: 17.45 kB / 0.5066 GB, free: 91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.4373, allocations: 58.14 kB / 0.5067 GB, free: 91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.4374, allocations: 40.73 kB / 0.5067 GB, free: 91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.4375, allocations: 22.64 kB / 0.5068 GB, free: 91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003712/0.4379, allocations: 336.9 kB / 0.5071 GB, free: 90.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4379, allocations: 0 / 0.5071 GB, free: 90.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007839/0.4387, allocations: 258 kB / 0.5073 GB, free: 90.91 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) * Number of clocked states: 0 () * 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.00201/0.4407, allocations: 1.518 MB / 0.5088 GB, free: 90.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001541/0.4422, allocations: 0.9042 MB / 0.5097 GB, free: 90.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4423, allocations: 3.625 kB / 0.5097 GB, free: 90.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004308/0.4427, allocations: 290.4 kB / 0.51 GB, free: 90.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.443, allocations: 66.67 kB / 0.51 GB, free: 90.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.4456, allocations: 6.107 MB / 0.516 GB, free: 84.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.4458, allocations: 0.9258 MB / 0.5169 GB, free: 84.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003838/0.4462, allocations: 103.7 kB / 0.517 GB, free: 84.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.4465, allocations: 248.5 kB / 0.5172 GB, free: 84.13 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.4465, allocations: 0 / 0.5172 GB, free: 84.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/0.4655, allocations: 10.84 MB / 0.5278 GB, free: 80.1 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001251/0.4657, allocations: 183.8 kB / 0.528 GB, free: 79.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.042/2.508, allocations: 0 / 0.528 GB, free: 79.86 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion.fmu > Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat does not exist to compare? outputFormat=mat