Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009162/0.0009164, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 221.3 MB / 235.5 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008099/0.0008098, allocations: 87.81 kB / 286.5 MB, free: 192 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.466e-05/2.476e-05, allocations: 0 / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 50.42 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4574, allocations: 80.92 MB / 475.3 MB, free: 6.547 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.4577, allocations: 70.38 kB / 475.3 MB, free: 6.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02906/0.4867, allocations: 10.47 MB / 485.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4868, allocations: 0 / 485.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.903e-05/0.4868, allocations: 16 kB / 485.8 MB, free: 11.96 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.001513/0.4883, allocations: 0.8478 MB / 486.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.4884, allocations: 8.031 kB / 486.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.4885, allocations: 98.7 kB / 486.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.4886, allocations: 86.98 kB / 486.9 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008001/0.4895, allocations: 0.5213 MB / 487.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.76e-05/0.4895, allocations: 45.31 kB / 487.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.4896, allocations: 71.89 kB / 487.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.4907, allocations: 0.6098 MB / 488.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.4907, allocations: 0 / 488.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.179e-05/0.4908, allocations: 23.98 kB / 488.1 MB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.4908, allocations: 19.98 kB / 488.1 MB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007374/0.4916, allocations: 421.2 kB / 488.6 MB, free: 9.098 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003054/0.4946, allocations: 1.991 MB / 490.5 MB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007761/0.4954, allocations: 429.2 kB / 491 MB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/0.4957, allocations: 170.2 kB / 491.1 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-05/0.4958, allocations: 16.42 kB / 491.1 MB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005996/0.4964, allocations: 342.2 kB / 491.5 MB, free: 6.082 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 3.226e-06/0.4964, allocations: 0 / 491.5 MB, free: 6.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.0009372/0.4974, allocations: 463.4 kB / 491.9 MB, free: 5.621 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.838e-05/0.4975, allocations: 119.2 kB / 492 MB, free: 5.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005368/0.498, allocations: 403.1 kB / 492.4 MB, free: 5.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.954e-05/0.4981, allocations: 41.7 kB / 492.5 MB, free: 5.039 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/0.4984, allocations: 316.3 kB / 492.8 MB, free: 4.723 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.4985, allocations: 161.7 kB / 492.9 MB, free: 4.562 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/0.4986, allocations: 16 kB / 493 MB, free: 4.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.4988, allocations: 366.8 kB / 493.3 MB, free: 4.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.4991, allocations: 157.5 kB / 493.5 MB, free: 4.027 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004409/0.4995, allocations: 378.3 kB / 493.8 MB, free: 3.559 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.4999, allocations: 202 kB / 494 MB, free: 3.367 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4999, allocations: 0 / 494 MB, free: 3.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009093/0.5008, allocations: 0.596 MB / 494.6 MB, free: 2.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001012/0.5018, allocations: 2.525 MB / 497.2 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.5019, allocations: 11.98 kB / 497.2 MB, free: 32 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.809e-05/0.5019, allocations: 16 kB / 497.2 MB, free: 16 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006019/0.5025, allocations: 147.7 kB / 497.3 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.936e-05/0.5025, allocations: 15.94 kB / 497.3 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004454/0.503, allocations: 87.55 kB / 497.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/0.503, allocations: 28 kB / 497.5 MB, free: 15.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.115e-06/0.5031, allocations: 4 kB / 497.5 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007712/0.5038, allocations: 0.5136 MB / 498 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.5038, allocations: 8.812 kB / 498 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.5039, allocations: 12 kB / 498 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004513/0.5043, allocations: 131.8 kB / 498.1 MB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.5043, allocations: 15.94 kB / 498.1 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003665/0.5047, allocations: 79.5 kB / 498.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-05/0.5048, allocations: 28 kB / 498.2 MB, free: 14.96 MB / 378.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.0001799/0.505, allocations: 162.6 kB / 498.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.657e-05/0.505, allocations: 55.3 kB / 498.5 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008964/0.5059, allocations: 0.49 MB / 499 MB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.506, allocations: 8 kB / 499 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.506, allocations: 0 / 499 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.506, allocations: 0 / 499 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007117/0.5067, allocations: 0.6419 MB / 499.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.5067, allocations: 4 kB / 499.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004457/0.5072, allocations: 99.81 kB / 499.7 MB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.5072, allocations: 4 kB / 499.7 MB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/0.5072, allocations: 19.94 kB / 499.7 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.5073, allocations: 7.938 kB / 499.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5073, allocations: 0 / 499.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.5085, allocations: 0.7385 MB / 0.4887 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.5086, allocations: 132.4 kB / 0.4889 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.231e-05/0.5087, allocations: 12 kB / 0.4889 GB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.5091, allocations: 59.91 kB / 0.4889 GB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.5092, allocations: 40.38 kB / 0.489 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.091e-05/0.5093, allocations: 23.98 kB / 0.489 GB, free: 12.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003265/0.5096, allocations: 301.2 kB / 0.4893 GB, free: 12.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5096, allocations: 4 kB / 0.4893 GB, free: 12.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007316/0.5103, allocations: 251.1 kB / 0.4895 GB, free: 11.82 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.001546/0.5119, allocations: 1.312 MB / 0.4908 GB, free: 10.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.5132, allocations: 0.7311 MB / 0.4915 GB, free: 9.758 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5132, allocations: 4.312 kB / 0.4915 GB, free: 9.754 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003537/0.5136, allocations: 234.4 kB / 0.4918 GB, free: 9.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.5141, allocations: 64.06 kB / 0.4918 GB, free: 9.465 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.5162, allocations: 0.9774 MB / 0.4928 GB, free: 8.449 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.5167, allocations: 0.9123 MB / 0.4937 GB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005362/0.5173, allocations: 122.4 kB / 0.4938 GB, free: 7.383 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003608/0.5176, allocations: 231.3 kB / 0.494 GB, free: 7.156 MB / 378.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5176, allocations: 0 / 0.494 GB, free: 7.156 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.5438, allocations: 11.27 MB / 0.505 GB, free: 12.01 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002795/0.5441, allocations: 154.4 kB / 0.5051 GB, free: 11.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.211/2.755, allocations: 0 / 0.5051 GB, free: 11.79 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat does not exist to compare? outputFormat=mat