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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008765/0.0008765, allocations: 92.86 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009367/0.0009367, allocations: 183.5 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.000264, allocations: 7.094 kB / 300.8 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1215, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.00421/0.1257, allocations: 3.02 MB / 354.2 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.1283, allocations: 1.154 MB / 355.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003928/0.1287, allocations: 19.88 kB / 355.4 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002078/0.1289, allocations: 51.48 kB / 355.5 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003888/0.1293, allocations: 119.6 kB / 355.6 MB, free: 7.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.1301, allocations: 247.5 kB / 355.8 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006494/0.1307, allocations: 495 kB / 356.3 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004398/0.1312, allocations: 268.7 kB / 356.6 MB, free: 6.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003225/0.1315, allocations: 227 kB / 356.8 MB, free: 6.012 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000332/0.1319, allocations: 258.6 kB / 357 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.558e-05/0.1319, allocations: 24 kB / 357.1 MB, free: 5.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.219e-05/0.132, allocations: 20 kB / 357.1 MB, free: 5.715 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.1321, allocations: 115.5 kB / 357.2 MB, free: 5.602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.1323, allocations: 145.3 kB / 357.3 MB, free: 5.453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006476/0.1329, allocations: 0.7209 MB / 358.1 MB, free: 4.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.1329, allocations: 0 / 358.1 MB, free: 4.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1329, allocations: 3.938 kB / 358.1 MB, free: 4.727 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.133, allocations: 0 / 358.1 MB, free: 4.727 MB / 286.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.001823/0.1348, allocations: 0.9045 MB / 359 MB, free: 3.766 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.1349, allocations: 12.03 kB / 359 MB, free: 3.754 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001362/0.135, allocations: 110.4 kB / 359.1 MB, free: 3.637 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.1352, allocations: 87 kB / 359.2 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009475/0.1361, allocations: 0.5682 MB / 359.7 MB, free: 2.941 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.353e-05/0.1362, allocations: 49.31 kB / 359.8 MB, free: 2.895 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.1363, allocations: 67.98 kB / 359.9 MB, free: 2.828 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.1375, allocations: 0.6644 MB / 360.5 MB, free: 2.145 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.1375, allocations: 7.906 kB / 360.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.402e-05/0.1376, allocations: 27.95 kB / 360.6 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.1376, allocations: 12 kB / 360.6 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.1388, allocations: 0.5283 MB / 361.1 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003136/0.1419, allocations: 1.948 MB / 363 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.143, allocations: 0.5245 MB / 363.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/0.1431, allocations: 12.42 kB / 363.6 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008137/0.1439, allocations: 409.1 kB / 364 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 3.427e-06/0.1439, allocations: 0 / 364 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.001764/0.1457, allocations: 0.7795 MB / 364.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.013e-05/0.1458, allocations: 115.2 kB / 364.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005221/0.1463, allocations: 441.9 kB / 365.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.673e-05/0.1464, allocations: 45.69 kB / 365.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002616/0.1467, allocations: 328.3 kB / 365.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.1468, allocations: 153.8 kB / 365.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.1468, allocations: 12 kB / 365.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.147, allocations: 366.8 kB / 366.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004786/0.1475, allocations: 217.2 kB / 366.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006178/0.1481, allocations: 437 kB / 366.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005283/0.1487, allocations: 276.9 kB / 367.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.1487, allocations: 4 kB / 367.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001296/0.15, allocations: 0.7059 MB / 367.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001208/0.1512, allocations: 2.524 MB / 370.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.1512, allocations: 8 kB / 370.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.1513, allocations: 8 kB / 370.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.1518, allocations: 143.8 kB / 370.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.243e-05/0.1519, allocations: 15.94 kB / 370.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004668/0.1523, allocations: 99.39 kB / 370.6 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-05/0.1524, allocations: 24 kB / 370.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.414e-06/0.1524, allocations: 4 kB / 370.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001034/0.1535, allocations: 0.5801 MB / 371.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1535, allocations: 7.984 kB / 371.2 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.1535, allocations: 15.94 kB / 371.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/0.1539, allocations: 127.8 kB / 371.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.989e-05/0.154, allocations: 15.92 kB / 371.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.1543, allocations: 91.64 kB / 371.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.809e-05/0.1544, allocations: 27.94 kB / 371.5 MB, free: 6.727 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.0004661/0.1548, allocations: 307.5 kB / 371.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.561e-05/0.1549, allocations: 55.34 kB / 371.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.1562, allocations: 0.6258 MB / 372.5 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.1562, allocations: 4 kB / 372.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1563, allocations: 0 / 372.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.1563, allocations: 7.938 kB / 372.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007416/0.157, allocations: 0.6341 MB / 373.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.157, allocations: 0 / 373.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004393/0.1575, allocations: 99.88 kB / 373.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1575, allocations: 0 / 373.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/0.1575, allocations: 19.98 kB / 373.2 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1576, allocations: 0 / 373.2 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/0.1576, allocations: 7.984 kB / 373.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.1593, allocations: 0.9293 MB / 374.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.1594, allocations: 136.4 kB / 374.3 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.138e-05/0.1595, allocations: 16 kB / 374.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.1598, allocations: 51.95 kB / 374.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.1599, allocations: 44.5 kB / 374.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.16, allocations: 19.98 kB / 374.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003435/0.1603, allocations: 303.1 kB / 374.7 MB, free: 3.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1603, allocations: 0 / 374.7 MB, free: 3.391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000816/0.1612, allocations: 251 kB / 375 MB, free: 3.145 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.002099/0.1633, allocations: 1.505 MB / 376.5 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.1652, allocations: 0.869 MB / 377.3 MB, free: 0.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.1652, allocations: 0 / 377.3 MB, free: 0.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005778/0.1658, allocations: 296 kB / 377.6 MB, free: 472 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.1663, allocations: 73.45 kB / 377.7 MB, free: 400 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004633/0.1709, allocations: 6.082 MB / 383.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007839/0.1718, allocations: 0.9155 MB / 384.7 MB, free: 9.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005018/0.1723, allocations: 104.6 kB / 384.8 MB, free: 9.074 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003738/0.1727, allocations: 235.3 kB / 385 MB, free: 8.844 MB / 318.1 MB Notification: Performance of SimCode: time 1.513e-06/0.1727, allocations: 0 / 385 MB, free: 8.844 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.199, allocations: 10.35 MB / 395.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/0.1992, allocations: 183.5 kB / 395.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.078/2.278, allocations: 0 / 395.6 MB, free: 14.39 MB / 334.1 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