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.001295/0.001295, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.00118, allocations: 99.52 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.412e-05/2.398e-05, allocations: 4 kB / 343.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.12, allocations: 51.48 MB / 395.3 MB, free: 4.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3728/0.4928, allocations: 81.08 MB / 476.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.4931, allocations: 68.53 kB / 476.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02647/0.5196, allocations: 10.69 MB / 487.1 MB, free: 3.047 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.5196, allocations: 0 / 487.1 MB, free: 3.047 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.503e-05/0.5197, allocations: 16.12 kB / 487.1 MB, free: 3.031 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: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.002033/0.5217, allocations: 0.8684 MB / 488 MB, free: 2.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.5218, allocations: 12.03 kB / 488 MB, free: 2.148 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008351/0.5226, allocations: 159.3 kB / 488.2 MB, free: 1.996 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009656/0.5236, allocations: 0.5437 MB / 488.7 MB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/0.5237, allocations: 23.98 kB / 488.7 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.5238, allocations: 36 kB / 488.8 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008654/0.5247, allocations: 397.4 kB / 489.1 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009071/0.5256, allocations: 0.5314 MB / 489.7 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.5257, allocations: 7.938 kB / 489.7 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/0.5257, allocations: 4 kB / 489.7 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.5258, allocations: 12 kB / 489.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/0.5298, allocations: 1.918 MB / 491.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.5312, allocations: 399.2 kB / 492 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.5317, allocations: 171.9 kB / 492.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.38e-05/0.5318, allocations: 4.438 kB / 492.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000938/0.5327, allocations: 336.1 kB / 492.5 MB, free: 14.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 4.468e-06/0.5327, allocations: 0 / 492.5 MB, free: 14.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.001423/0.5342, allocations: 441.4 kB / 492.9 MB, free: 14.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.5343, allocations: 114.6 kB / 493 MB, free: 14.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008458/0.5352, allocations: 392.3 kB / 493.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.5353, allocations: 33.25 kB / 493.5 MB, free: 13.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004079/0.5357, allocations: 332.7 kB / 493.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.5359, allocations: 154.2 kB / 493.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.536, allocations: 0 / 493.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002618/0.5363, allocations: 370.2 kB / 494.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/0.5367, allocations: 152 kB / 494.4 MB, free: 13.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006274/0.5373, allocations: 361 kB / 494.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004973/0.5378, allocations: 195.1 kB / 495 MB, free: 12.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.832e-06/0.5379, allocations: 0 / 495 MB, free: 12.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001458/0.5393, allocations: 0.5444 MB / 495.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001434/0.5408, allocations: 2.525 MB / 498.1 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.5408, allocations: 15.89 kB / 498.1 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.501e-05/0.5409, allocations: 8 kB / 498.1 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009179/0.5418, allocations: 150.2 kB / 498.2 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.425e-05/0.5418, allocations: 19.92 kB / 498.3 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008183/0.5427, allocations: 71.5 kB / 498.3 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.473e-05/0.5428, allocations: 35.48 kB / 498.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.5428, allocations: 4 kB / 498.4 MB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001171/0.544, allocations: 449.3 kB / 498.8 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.544, allocations: 8 kB / 498.8 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.544, allocations: 8 kB / 498.8 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007781/0.5448, allocations: 134.9 kB / 498.9 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.5449, allocations: 10.97 kB / 499 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006769/0.5455, allocations: 63.88 kB / 499 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.066e-05/0.5456, allocations: 30.75 kB / 499 MB, free: 8.75 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_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 () * 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.0002739/0.5459, allocations: 139 kB / 499.2 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001133/0.5471, allocations: 437.7 kB / 499.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.5472, allocations: 63.33 kB / 499.7 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001285/0.5485, allocations: 460.7 kB / 0.4884 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.5485, allocations: 4.656 kB / 0.4884 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.5486, allocations: 0 / 0.4884 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.5486, allocations: 4 kB / 0.4884 GB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.5496, allocations: 0.5804 MB / 0.489 GB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.5496, allocations: 0 / 0.489 GB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007521/0.5504, allocations: 99.42 kB / 0.4891 GB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.5504, allocations: 4 kB / 0.4891 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.1e-05/0.5505, allocations: 13.33 kB / 0.4891 GB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/0.5505, allocations: 4 kB / 0.4891 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.5505, allocations: 4 kB / 0.4891 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.5522, allocations: 0.7012 MB / 0.4898 GB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.5525, allocations: 140.1 kB / 0.4899 GB, free: 6.699 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.5526, allocations: 7.938 kB / 0.4899 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005466/0.5532, allocations: 47.95 kB / 0.49 GB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.5533, allocations: 40.06 kB / 0.49 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.456e-05/0.5534, allocations: 19.8 kB / 0.49 GB, free: 6.602 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005249/0.554, allocations: 295.7 kB / 0.4903 GB, free: 6.387 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.264e-06/0.554, allocations: 4 kB / 0.4903 GB, free: 6.383 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001408/0.5554, allocations: 230.9 kB / 0.4905 GB, free: 6.16 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_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) * 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.002193/0.5576, allocations: 1.282 MB / 0.4918 GB, free: 5.098 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.5595, allocations: 0.6892 MB / 0.4925 GB, free: 4.633 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5595, allocations: 0 / 0.4925 GB, free: 4.633 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005124/0.56, allocations: 214.9 kB / 0.4927 GB, free: 4.453 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006514/0.5607, allocations: 58.48 kB / 0.4927 GB, free: 4.402 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003198/0.5639, allocations: 0.963 MB / 0.4937 GB, free: 3.406 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007545/0.5647, allocations: 0.92 MB / 0.4946 GB, free: 2.457 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009008/0.5656, allocations: 126.6 kB / 0.4947 GB, free: 2.332 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000511/0.5661, allocations: 239.3 kB / 0.4949 GB, free: 2.098 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5661, allocations: 0 / 0.4949 GB, free: 2.098 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04975/0.6159, allocations: 10.9 MB / 0.5055 GB, free: 7.285 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002699/0.6162, allocations: 131 kB / 0.5057 GB, free: 7.098 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.368/2.984, allocations: 4.031 kB / 0.5057 GB, free: 7.094 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