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.001169/0.001169, allocations: 181.3 kB / 17.01 MB, free: 5.125 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.459/1.459, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009484/0.0009484, allocations: 95.89 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002628, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2674, allocations: 47.56 MB / 375.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09096/0.3584, allocations: 79.69 MB / 455.6 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.3587, allocations: 67.97 kB / 455.7 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02797/0.3866, allocations: 10.25 MB / 465.9 MB, free: 6.613 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3867, allocations: 0 / 465.9 MB, free: 6.613 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.449e-05/0.3868, allocations: 20.16 kB / 465.9 MB, free: 6.594 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002149/0.3889, allocations: 0.9214 MB / 466.9 MB, free: 5.613 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.389, allocations: 8.031 kB / 466.9 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002227/0.3892, allocations: 98.5 kB / 467 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.3894, allocations: 83.02 kB / 467 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008997/0.3903, allocations: 0.5255 MB / 467.6 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.728e-05/0.3904, allocations: 45.31 kB / 467.6 MB, free: 4.805 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-05/0.3905, allocations: 63.94 kB / 467.7 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.3917, allocations: 0.6637 MB / 468.3 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.3918, allocations: 3.906 kB / 468.3 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.099e-05/0.3918, allocations: 24 kB / 468.4 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.3919, allocations: 15.95 kB / 468.4 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.3931, allocations: 0.5387 MB / 468.9 MB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003164/0.3963, allocations: 1.94 MB / 470.9 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.3973, allocations: 0.5206 MB / 471.4 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.3974, allocations: 8.438 kB / 471.4 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007553/0.3981, allocations: 414.2 kB / 471.8 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=53): time 4.338e-06/0.3982, allocations: 3.984 kB / 471.8 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.001703/0.3999, allocations: 0.8029 MB / 472.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/0.4, allocations: 119.2 kB / 472.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000513/0.4005, allocations: 405.1 kB / 473.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.4006, allocations: 45.69 kB / 473.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.4008, allocations: 312.4 kB / 473.5 MB, free: 14.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.401, allocations: 161.7 kB / 473.6 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/0.401, allocations: 12 kB / 473.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.4012, allocations: 370.8 kB / 474 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004814/0.4017, allocations: 229.1 kB / 474.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000627/0.4023, allocations: 445 kB / 474.6 MB, free: 13.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000536/0.4029, allocations: 270.9 kB / 474.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4029, allocations: 0 / 474.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001359/0.4042, allocations: 0.7348 MB / 475.6 MB, free: 12.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001008/0.4053, allocations: 2.531 MB / 478.2 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.4053, allocations: 4 kB / 478.2 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/0.4053, allocations: 12 kB / 478.2 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005375/0.4059, allocations: 147.8 kB / 478.3 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.227e-05/0.4059, allocations: 15.94 kB / 478.4 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/0.4064, allocations: 91.48 kB / 478.4 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.175e-05/0.4064, allocations: 28 kB / 478.5 MB, free: 9.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.4065, allocations: 8 kB / 478.5 MB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001061/0.4075, allocations: 0.5912 MB / 479.1 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.4075, allocations: 4 kB / 479.1 MB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.4076, allocations: 12 kB / 479.1 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/0.408, allocations: 131.8 kB / 479.2 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.408, allocations: 12.19 kB / 479.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.4085, allocations: 83.5 kB / 479.3 MB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-05/0.4085, allocations: 27.98 kB / 479.3 MB, free: 8.629 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,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 () * 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.0004304/0.409, allocations: 315.1 kB / 479.6 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.4091, allocations: 59.34 kB / 479.7 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.4104, allocations: 0.6074 MB / 480.3 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.4104, allocations: 11.94 kB / 480.3 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4104, allocations: 0 / 480.3 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/0.4104, allocations: 3.984 kB / 480.3 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008042/0.4112, allocations: 0.6379 MB / 481 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.4113, allocations: 4 kB / 481 MB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000438/0.4117, allocations: 95.86 kB / 481.1 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.4117, allocations: 4 kB / 481.1 MB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-05/0.4118, allocations: 15.98 kB / 481.1 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.4118, allocations: 3.938 kB / 481.1 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4118, allocations: 0 / 481.1 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.4135, allocations: 0.9298 MB / 482 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.4137, allocations: 144.3 kB / 482.2 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.578e-05/0.4138, allocations: 12 kB / 482.2 MB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003427/0.4141, allocations: 59.89 kB / 482.2 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.4142, allocations: 44.36 kB / 482.3 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.793e-05/0.4143, allocations: 23.98 kB / 482.3 MB, free: 5.559 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003361/0.4146, allocations: 318.9 kB / 482.6 MB, free: 5.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4146, allocations: 0 / 482.6 MB, free: 5.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008024/0.4154, allocations: 239.1 kB / 482.8 MB, free: 5.016 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) * 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.002222/0.4177, allocations: 1.513 MB / 484.3 MB, free: 3.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.4196, allocations: 0.897 MB / 485.2 MB, free: 2.582 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.4196, allocations: 0 / 485.2 MB, free: 2.582 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005964/0.4202, allocations: 291.4 kB / 485.5 MB, free: 2.301 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.4207, allocations: 69.8 kB / 485.6 MB, free: 2.238 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004621/0.4253, allocations: 6.046 MB / 491.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004966/0.4258, allocations: 0.9076 MB / 492.5 MB, free: 11.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005197/0.4264, allocations: 100.5 kB / 492.6 MB, free: 10.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003801/0.4267, allocations: 235.3 kB / 492.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4267, allocations: 3.938 kB / 492.9 MB, free: 10.74 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.4497, allocations: 10.4 MB / 0.4915 GB, free: 364 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/0.4499, allocations: 174.2 kB / 0.4917 GB, free: 116 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.074/2.524, allocations: 0 / 0.4917 GB, free: 116 kB / 378.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