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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0007601/0.0007602, allocations: 101.9 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008593/0.0008595, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246 MB, free: 11.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002582/0.0002582, allocations: 8 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1329, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.00418/0.1371, allocations: 3.15 MB / 361.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00282/0.14, allocations: 1.247 MB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000484/0.1405, allocations: 11.94 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002446/0.1408, allocations: 55.42 kB / 362.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.1412, allocations: 107.1 kB / 362.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008282/0.142, allocations: 258.9 kB / 363.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008343/0.1429, allocations: 0.783 MB / 363.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004562/0.1434, allocations: 276.8 kB / 364.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003717/0.1437, allocations: 234.8 kB / 364.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.1441, allocations: 266.5 kB / 364.7 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.216e-05/0.1441, allocations: 24 kB / 364.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.1443, allocations: 32 kB / 364.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.1444, allocations: 123.4 kB / 364.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.1445, allocations: 149.3 kB / 365 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006984/0.1452, allocations: 0.7678 MB / 365.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.1453, allocations: 0 / 365.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1453, allocations: 4 kB / 365.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.1453, allocations: 0 / 365.8 MB, free: 6.48 MB / 302.1 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.001706/0.147, allocations: 0.9353 MB / 366.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.1471, allocations: 8.031 kB / 366.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001718/0.1472, allocations: 102.5 kB / 366.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008351/0.1481, allocations: 162.9 kB / 367 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.1492, allocations: 0.6148 MB / 367.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.158e-05/0.1492, allocations: 49.31 kB / 367.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.118e-05/0.1493, allocations: 67.98 kB / 367.7 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.1506, allocations: 0.6722 MB / 368.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.1507, allocations: 7.906 kB / 368.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.551e-05/0.1508, allocations: 20 kB / 368.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.1508, allocations: 12 kB / 368.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.152, allocations: 0.536 MB / 368.9 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003596/0.1556, allocations: 1.945 MB / 370.9 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.1568, allocations: 0.5167 MB / 371.4 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000461/0.1573, allocations: 234.1 kB / 371.6 MB, free: 408 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-05/0.1573, allocations: 12.42 kB / 371.6 MB, free: 396 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3034/0.4607, allocations: 406.3 kB / 372 MB, free: 19.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 7.003e-06/0.4608, allocations: 0 / 372 MB, free: 19.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.003436/0.4642, allocations: 0.7834 MB / 372.8 MB, free: 19.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.4643, allocations: 116.2 kB / 372.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009837/0.4653, allocations: 472.2 kB / 373.4 MB, free: 18.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.916e-05/0.4654, allocations: 45.44 kB / 373.4 MB, free: 18.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000432/0.4659, allocations: 337.9 kB / 373.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.4661, allocations: 162.2 kB / 373.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.451e-05/0.4662, allocations: 12.94 kB / 373.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.4663, allocations: 370.2 kB / 374.3 MB, free: 18.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009532/0.4673, allocations: 219.7 kB / 374.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.4684, allocations: 441.1 kB / 374.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009585/0.4694, allocations: 271.3 kB / 375.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.4694, allocations: 2.844 kB / 375.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002438/0.4718, allocations: 0.7076 MB / 375.9 MB, free: 18.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002388/0.4721, allocations: 284.1 kB / 376.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.4721, allocations: 6.375 kB / 376.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.051e-05/0.4722, allocations: 11.7 kB / 376.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009013/0.4731, allocations: 150 kB / 376.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.253e-05/0.4731, allocations: 15.31 kB / 376.4 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007457/0.4739, allocations: 93.36 kB / 376.5 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.38e-05/0.474, allocations: 33.05 kB / 376.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.474, allocations: 7.938 kB / 376.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00178/0.4758, allocations: 0.5701 MB / 377.1 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.4759, allocations: 8.812 kB / 377.1 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.4759, allocations: 11.16 kB / 377.1 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000787/0.4767, allocations: 136.9 kB / 377.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.822e-05/0.4767, allocations: 11.31 kB / 377.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006599/0.4774, allocations: 77.02 kB / 377.3 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.024e-05/0.4775, allocations: 31.19 kB / 377.3 MB, free: 17.35 MB / 302.1 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.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$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.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid) * 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.0006574/0.4782, allocations: 313.8 kB / 377.7 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.4784, allocations: 65.44 kB / 377.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002389/0.4808, allocations: 0.6201 MB / 378.3 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.4808, allocations: 5.812 kB / 378.3 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.4808, allocations: 4 kB / 378.3 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.4809, allocations: 8.172 kB / 378.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.4821, allocations: 0.6438 MB / 379 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.4821, allocations: 1.156 kB / 379 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007007/0.4828, allocations: 97.06 kB / 379.1 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/0.4828, allocations: 6.406 kB / 379.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-05/0.4829, allocations: 24.92 kB / 379.1 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.657e-06/0.4829, allocations: 2.781 kB / 379.1 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4829, allocations: 0 / 379.1 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/0.4858, allocations: 0.9315 MB / 380.1 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.486, allocations: 138.8 kB / 380.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.4862, allocations: 16.59 kB / 380.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005164/0.4867, allocations: 59.7 kB / 380.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.4869, allocations: 47.09 kB / 380.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.487, allocations: 20.66 kB / 380.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006933/0.4877, allocations: 321.2 kB / 380.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4877, allocations: 0 / 380.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001591/0.4893, allocations: 252 kB / 380.9 MB, free: 15.61 MB / 302.1 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: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid) * 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 (55): * Single equations (assignments): 49 * 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.003229/0.4925, allocations: 1.499 MB / 382.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002841/0.4954, allocations: 0.8647 MB / 383.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.4954, allocations: 256 / 383.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008843/0.4963, allocations: 294.4 kB / 383.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007592/0.4971, allocations: 89.38 kB / 383.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01201/0.5091, allocations: 3.733 MB / 387.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008887/0.5101, allocations: 0.9082 MB / 388.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001031/0.5111, allocations: 115.3 kB / 388.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006261/0.5118, allocations: 245.1 kB / 388.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of SimCode: time 1.603e-06/0.5118, allocations: 1.75 kB / 388.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03578/0.5476, allocations: 11.06 MB / 399.7 MB, free: 4.762 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002337/0.5479, allocations: 185.6 kB / 399.9 MB, free: 4.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.201/2.749, allocations: 0 / 399.9 MB, free: 4.52 MB / 302.1 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