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.00152/0.00152, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009087/0.0009086, allocations: 87.25 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.336e-05/5.338e-05, allocations: 3.984 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.122, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4268/0.5488, allocations: 81.74 MB / 483.9 MB, free: 7.715 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001812/0.549, allocations: 75.98 kB / 483.9 MB, free: 7.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02775/0.5768, allocations: 10.77 MB / 494.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5768, allocations: 0 / 494.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.467e-05/0.5769, allocations: 20 kB / 494.7 MB, free: 14.6 MB / 362.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.001957/0.5789, allocations: 0.8759 MB / 495.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.5789, allocations: 8.031 kB / 495.6 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001783/0.5791, allocations: 94.52 kB / 495.7 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007877/0.5799, allocations: 155.8 kB / 495.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.581, allocations: 0.5443 MB / 496.4 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.417e-05/0.5811, allocations: 49.31 kB / 496.5 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.5812, allocations: 63.98 kB / 496.5 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.5824, allocations: 0.6098 MB / 497.1 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.5825, allocations: 0 / 497.1 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.731e-05/0.5825, allocations: 28 kB / 497.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.5826, allocations: 12 kB / 497.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008871/0.5835, allocations: 433.1 kB / 497.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003725/0.5872, allocations: 2.018 MB / 499.6 MB, free: 9.539 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000787/0.588, allocations: 421.2 kB / 0.4883 GB, free: 9.121 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003074/0.5883, allocations: 174.2 kB / 0.4885 GB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.5884, allocations: 4.438 kB / 0.4885 GB, free: 8.945 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006256/0.589, allocations: 349.2 kB / 0.4888 GB, free: 8.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 3.407e-06/0.589, allocations: 0 / 0.4888 GB, free: 8.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.001006/0.59, allocations: 467.3 kB / 0.4892 GB, free: 8.125 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.625e-05/0.5901, allocations: 123.2 kB / 0.4894 GB, free: 7.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006068/0.5908, allocations: 424 kB / 0.4898 GB, free: 7.562 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.056e-05/0.5908, allocations: 41.7 kB / 0.4898 GB, free: 7.516 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.5911, allocations: 332.3 kB / 0.4901 GB, free: 7.188 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.5913, allocations: 161.7 kB / 0.4903 GB, free: 7.027 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.5913, allocations: 16 kB / 0.4903 GB, free: 7.012 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.5915, allocations: 370.8 kB / 0.4906 GB, free: 6.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.5919, allocations: 162.1 kB / 0.4908 GB, free: 6.484 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.5923, allocations: 382.3 kB / 0.4912 GB, free: 6.012 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/0.5927, allocations: 208.6 kB / 0.4914 GB, free: 5.812 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.5928, allocations: 7.938 kB / 0.4914 GB, free: 5.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001087/0.5939, allocations: 0.6039 MB / 0.492 GB, free: 5.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001113/0.595, allocations: 2.533 MB / 0.4944 GB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.595, allocations: 9.312 kB / 0.4944 GB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.34e-05/0.595, allocations: 12 kB / 0.4945 GB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.5956, allocations: 147.7 kB / 0.4946 GB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.098e-05/0.5957, allocations: 8 kB / 0.4946 GB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000495/0.5962, allocations: 91.48 kB / 0.4947 GB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.054e-05/0.5962, allocations: 32 kB / 0.4947 GB, free: 2.176 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.5962, allocations: 4 kB / 0.4947 GB, free: 2.172 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000872/0.5971, allocations: 0.5229 MB / 0.4952 GB, free: 1.652 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.5972, allocations: 8 kB / 0.4952 GB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.5972, allocations: 12 kB / 0.4953 GB, free: 1.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004669/0.5977, allocations: 131.7 kB / 0.4954 GB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.5977, allocations: 12 kB / 0.4954 GB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004418/0.5981, allocations: 75.66 kB / 0.4955 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-05/0.5982, allocations: 29.64 kB / 0.4955 GB, free: 1.391 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.0002184/0.5984, allocations: 169.5 kB / 0.4957 GB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.5985, allocations: 59.25 kB / 0.4957 GB, free: 1.164 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009756/0.5995, allocations: 0.4903 MB / 0.4962 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.5995, allocations: 8 kB / 0.4962 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.5996, allocations: 0 / 0.4962 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.5996, allocations: 3.984 kB / 0.4962 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008639/0.6004, allocations: 0.6573 MB / 0.4968 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.6005, allocations: 0 / 0.4968 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004582/0.6009, allocations: 103.9 kB / 0.4969 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.6009, allocations: 0 / 0.4969 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.188e-05/0.601, allocations: 19.98 kB / 0.497 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.601, allocations: 0 / 0.497 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.601, allocations: 0 / 0.497 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.6023, allocations: 0.7385 MB / 0.4977 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.6025, allocations: 136.4 kB / 0.4978 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.655e-05/0.6026, allocations: 16 kB / 0.4978 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003657/0.6029, allocations: 47.95 kB / 0.4979 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.6031, allocations: 44.38 kB / 0.4979 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.452e-05/0.6031, allocations: 29.89 kB / 0.4979 GB, free: 14.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004503/0.6036, allocations: 333.5 kB / 0.4983 GB, free: 14.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6036, allocations: 0 / 0.4983 GB, free: 14.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008905/0.6045, allocations: 263 kB / 0.4985 GB, free: 14.19 MB / 378.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.001752/0.6062, allocations: 1.329 MB / 0.4998 GB, free: 12.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.6076, allocations: 0.7428 MB / 0.5005 GB, free: 12.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.6077, allocations: 0 / 0.5005 GB, free: 12.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003772/0.6081, allocations: 226.4 kB / 0.5008 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.6085, allocations: 70.86 kB / 0.5008 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.6111, allocations: 1.004 MB / 0.5018 GB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006884/0.6118, allocations: 0.9247 MB / 0.5027 GB, free: 9.812 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006165/0.6124, allocations: 122.6 kB / 0.5028 GB, free: 9.691 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.6128, allocations: 243.3 kB / 0.5031 GB, free: 9.453 MB / 378.7 MB Notification: Performance of SimCode: time 2.214e-06/0.6128, allocations: 0.8438 kB / 0.5031 GB, free: 9.453 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02937/0.6422, allocations: 11.82 MB / 0.5146 GB, free: 13.86 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/0.6424, allocations: 150.1 kB / 0.5147 GB, free: 13.63 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.271/2.914, allocations: 0 / 0.5147 GB, free: 13.63 MB / 394.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