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.0009119/0.0009118, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 86.34 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.134e-05/2.137e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.09027, allocations: 47.58 MB / 363.2 MB, free: 7 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2996/0.39, allocations: 79.19 MB / 442.3 MB, free: 216 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.3902, allocations: 74.34 kB / 442.4 MB, free: 180 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.028/0.4182, allocations: 10.14 MB / 452.6 MB, free: 7.836 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.4183, allocations: 7.938 kB / 452.6 MB, free: 7.828 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.826e-05/0.4183, allocations: 20 kB / 452.6 MB, free: 7.809 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.001517/0.4198, allocations: 0.8341 MB / 453.4 MB, free: 6.961 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4199, allocations: 12.03 kB / 453.4 MB, free: 6.949 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.42, allocations: 87 kB / 453.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007821/0.4208, allocations: 0.5143 MB / 454 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.4209, allocations: 23.98 kB / 454.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.243e-05/0.421, allocations: 32 kB / 454.1 MB, free: 6.363 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007105/0.4217, allocations: 388.1 kB / 454.5 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008188/0.4225, allocations: 0.5139 MB / 455 MB, free: 5.766 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.4225, allocations: 12.66 kB / 455 MB, free: 5.754 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.307e-05/0.4226, allocations: 11.05 kB / 455 MB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.4226, allocations: 15.95 kB / 455 MB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002764/0.4254, allocations: 1.835 MB / 456.8 MB, free: 4.328 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006074/0.426, allocations: 397.6 kB / 457.2 MB, free: 4.086 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.4263, allocations: 167.2 kB / 457.4 MB, free: 3.988 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.822e-05/0.4263, allocations: 12.41 kB / 457.4 MB, free: 3.977 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/0.4268, allocations: 328.1 kB / 457.7 MB, free: 3.723 MB / 330.7 MB Notification: Performance of pre-optimization done (n=53): time 2.735e-06/0.4268, allocations: 3.938 kB / 457.7 MB, free: 3.719 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.0007231/0.4276, allocations: 439.5 kB / 458.2 MB, free: 3.406 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.4277, allocations: 115.2 kB / 458.3 MB, free: 3.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004121/0.4281, allocations: 372.3 kB / 458.6 MB, free: 2.984 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.271e-05/0.4281, allocations: 29.08 kB / 458.7 MB, free: 2.953 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.4283, allocations: 312.8 kB / 459 MB, free: 2.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.4285, allocations: 154.6 kB / 459.1 MB, free: 2.602 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.4285, allocations: 4 kB / 459.1 MB, free: 2.598 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.4287, allocations: 369.3 kB / 459.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.4289, allocations: 148.5 kB / 459.6 MB, free: 2.168 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003678/0.4293, allocations: 360.3 kB / 460 MB, free: 1.805 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/0.4296, allocations: 190.1 kB / 460.2 MB, free: 1.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.4296, allocations: 4 kB / 460.2 MB, free: 1.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008093/0.4305, allocations: 0.5315 MB / 460.7 MB, free: 1.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001002/0.4315, allocations: 2.52 MB / 463.2 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.4315, allocations: 15.94 kB / 463.2 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.61e-05/0.4315, allocations: 12 kB / 463.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005468/0.4321, allocations: 147.2 kB / 463.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.4321, allocations: 11.94 kB / 463.4 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004075/0.4325, allocations: 79.48 kB / 463.5 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-05/0.4326, allocations: 30.88 kB / 463.5 MB, free: 14.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/0.4326, allocations: 4 kB / 463.5 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006663/0.4333, allocations: 445.6 kB / 464 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.4333, allocations: 8.125 kB / 464 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.4333, allocations: 12 kB / 464 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004466/0.4337, allocations: 135.2 kB / 464.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.4338, allocations: 15.92 kB / 464.1 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003976/0.4342, allocations: 63.52 kB / 464.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.4342, allocations: 34.92 kB / 464.2 MB, free: 13.74 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.0001852/0.4344, allocations: 133.8 kB / 464.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007646/0.4352, allocations: 438.8 kB / 464.8 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.409e-05/0.4353, allocations: 55.34 kB / 464.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008869/0.4362, allocations: 465.4 kB / 465.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.4362, allocations: 4 kB / 465.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.4362, allocations: 4 kB / 465.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.4362, allocations: 3.984 kB / 465.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006774/0.4369, allocations: 0.5485 MB / 465.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.4369, allocations: 3.984 kB / 465.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005453/0.4375, allocations: 103.4 kB / 466 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.4375, allocations: 0 / 466 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.4376, allocations: 10.98 kB / 466 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.593e-06/0.4376, allocations: 4 kB / 466 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4376, allocations: 7.875 kB / 466 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.4388, allocations: 0.6988 MB / 466.7 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.4389, allocations: 135.6 kB / 466.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.439, allocations: 11.77 kB / 466.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004081/0.4394, allocations: 47.08 kB / 466.9 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.4396, allocations: 40.06 kB / 466.9 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.551e-05/0.4396, allocations: 23.86 kB / 466.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003396/0.44, allocations: 282.1 kB / 467.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.44, allocations: 0 / 467.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008802/0.4408, allocations: 207.2 kB / 467.4 MB, free: 11.21 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.001456/0.4423, allocations: 1.278 MB / 468.7 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009948/0.4433, allocations: 0.6796 MB / 469.4 MB, free: 9.688 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4433, allocations: 0 / 469.4 MB, free: 9.688 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002931/0.4436, allocations: 208 kB / 469.6 MB, free: 9.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003727/0.444, allocations: 63.55 kB / 469.6 MB, free: 9.508 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.4458, allocations: 0.9148 MB / 470.5 MB, free: 8.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004719/0.4463, allocations: 0.9078 MB / 471.5 MB, free: 7.746 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005167/0.4468, allocations: 118.4 kB / 471.6 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.4471, allocations: 230.1 kB / 471.8 MB, free: 7.566 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4471, allocations: 8 kB / 471.8 MB, free: 7.559 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03093/0.4781, allocations: 10.41 MB / 482.2 MB, free: 13.13 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.4783, allocations: 131.3 kB / 482.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.245/2.724, allocations: 0 / 482.3 MB, free: 12.95 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