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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.001002/0.001001, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.756e-05/2.758e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.09878, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3482/0.447, allocations: 79.59 MB / 449.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.4473, allocations: 68.28 kB / 449.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02896/0.4763, allocations: 10.24 MB / 460 MB, free: 4.898 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4763, allocations: 3.938 kB / 460 MB, free: 4.895 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.871e-05/0.4764, allocations: 16 kB / 460 MB, free: 4.879 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.001506/0.4779, allocations: 0.8356 MB / 460.9 MB, free: 3.988 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.4779, allocations: 16.02 kB / 460.9 MB, free: 3.973 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.4781, allocations: 90.7 kB / 461 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.4782, allocations: 83.02 kB / 461 MB, free: 3.793 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/0.479, allocations: 0.5214 MB / 461.6 MB, free: 3.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.06e-05/0.4791, allocations: 41.31 kB / 461.6 MB, free: 3.188 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.164e-05/0.4792, allocations: 64 kB / 461.7 MB, free: 3.125 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.4802, allocations: 0.5936 MB / 462.3 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.4802, allocations: 7.891 kB / 462.3 MB, free: 2.508 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.075e-05/0.4803, allocations: 20 kB / 462.3 MB, free: 2.488 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.4803, allocations: 19.95 kB / 462.3 MB, free: 2.469 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007538/0.4811, allocations: 415.9 kB / 462.7 MB, free: 2.059 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/0.4842, allocations: 1.943 MB / 464.7 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007784/0.4849, allocations: 410.5 kB / 465.1 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.4852, allocations: 174.2 kB / 465.2 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.915e-05/0.4853, allocations: 12.33 kB / 465.2 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005729/0.4859, allocations: 349.1 kB / 465.6 MB, free: 15.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=53): time 2.926e-06/0.4859, allocations: 0 / 465.6 MB, free: 15.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.0008185/0.4867, allocations: 463.4 kB / 466 MB, free: 14.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.789e-05/0.4868, allocations: 115.2 kB / 466.2 MB, free: 14.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005152/0.4873, allocations: 403.8 kB / 466.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.4874, allocations: 45.64 kB / 466.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.4877, allocations: 316.4 kB / 466.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.4878, allocations: 161.7 kB / 467.1 MB, free: 13.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.4878, allocations: 16 kB / 467.1 MB, free: 13.56 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.488, allocations: 362.8 kB / 467.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.4883, allocations: 157.5 kB / 467.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004442/0.4888, allocations: 382.3 kB / 468 MB, free: 12.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003494/0.4891, allocations: 203.8 kB / 468.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.4891, allocations: 0 / 468.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009323/0.4901, allocations: 0.5944 MB / 468.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001035/0.4911, allocations: 2.527 MB / 471.3 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.4911, allocations: 4 kB / 471.3 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.939e-05/0.4912, allocations: 16 kB / 471.3 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005387/0.4917, allocations: 151.7 kB / 471.4 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.837e-05/0.4917, allocations: 11.94 kB / 471.5 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004161/0.4922, allocations: 91.48 kB / 471.5 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.481e-05/0.4922, allocations: 28 kB / 471.6 MB, free: 8.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-06/0.4922, allocations: 4 kB / 471.6 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007694/0.493, allocations: 0.5077 MB / 472.1 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.493, allocations: 11.98 kB / 472.1 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.493, allocations: 12.03 kB / 472.1 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004344/0.4935, allocations: 135.7 kB / 472.2 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.4935, allocations: 11.98 kB / 472.2 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.4938, allocations: 83.44 kB / 472.3 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.4939, allocations: 28 kB / 472.4 MB, free: 7.961 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.0001674/0.4941, allocations: 162.9 kB / 472.5 MB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.728e-05/0.4941, allocations: 55.34 kB / 472.6 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008536/0.495, allocations: 0.49 MB / 473.1 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.495, allocations: 8 kB / 473.1 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.495, allocations: 4 kB / 473.1 MB, free: 7.234 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.4951, allocations: 3.984 kB / 473.1 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006791/0.4957, allocations: 0.634 MB / 473.7 MB, free: 6.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4958, allocations: 4 kB / 473.7 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004239/0.4962, allocations: 95.88 kB / 473.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.4962, allocations: 4 kB / 473.8 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.402e-05/0.4962, allocations: 15.98 kB / 473.8 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.4963, allocations: 0 / 473.8 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.4963, allocations: 4 kB / 473.8 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.4974, allocations: 0.7346 MB / 474.6 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.4976, allocations: 144.3 kB / 474.7 MB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.003e-05/0.4977, allocations: 16 kB / 474.7 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003299/0.498, allocations: 51.95 kB / 474.8 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.4981, allocations: 44.31 kB / 474.8 MB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.4982, allocations: 23.98 kB / 474.8 MB, free: 5.375 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003492/0.4985, allocations: 313.6 kB / 475.1 MB, free: 5.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4985, allocations: 0 / 475.1 MB, free: 5.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006849/0.4992, allocations: 247.1 kB / 475.4 MB, free: 4.828 MB / 346.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.001501/0.5007, allocations: 1.321 MB / 476.7 MB, free: 3.484 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.5019, allocations: 0.7325 MB / 477.4 MB, free: 2.758 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.5019, allocations: 4.062 kB / 477.4 MB, free: 2.754 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003354/0.5022, allocations: 226.4 kB / 477.7 MB, free: 2.531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.5026, allocations: 67.25 kB / 477.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/0.5045, allocations: 0.9659 MB / 478.7 MB, free: 1.461 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005292/0.5051, allocations: 0.9123 MB / 479.6 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005116/0.5056, allocations: 122.6 kB / 479.7 MB, free: 400 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.5059, allocations: 235.3 kB / 480 MB, free: 164 kB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5059, allocations: 0 / 480 MB, free: 164 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.5315, allocations: 11.3 MB / 491.3 MB, free: 4.844 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/0.5317, allocations: 150.4 kB / 491.4 MB, free: 4.621 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.21/2.741, allocations: 0 / 491.4 MB, free: 4.621 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