Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007439/0.007439, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.001344/0.001344, allocations: 186.6 kB / 16.67 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.742/1.742, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002581/0.002581, allocations: 57.95 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1767, allocations: 46.61 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005889/0.1827, allocations: 3.569 MB / 376.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003188/0.1859, allocations: 1.274 MB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003676/0.1863, allocations: 15.88 kB / 378 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003746/0.1868, allocations: 82.98 kB / 378.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004756/0.1873, allocations: 134.8 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008977/0.1882, allocations: 403.4 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009566/0.1892, allocations: 0.8493 MB / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000671/0.1898, allocations: 381.7 kB / 379.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004365/0.1903, allocations: 322.8 kB / 380.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004431/0.1907, allocations: 342.4 kB / 380.5 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.1909, allocations: 104 kB / 380.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.191, allocations: 92 kB / 380.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.1912, allocations: 203.4 kB / 380.9 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003562/0.1916, allocations: 382.1 kB / 381.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.1928, allocations: 0.9656 MB / 382.2 MB, free: 8.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.1928, allocations: 0 / 382.2 MB, free: 8.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.1928, allocations: 0 / 382.2 MB, free: 8.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.1928, allocations: 0 / 382.2 MB, free: 8.211 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00257/0.1954, allocations: 1.021 MB / 383.2 MB, free: 7.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.488e-05/0.1955, allocations: 12.03 kB / 383.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001921/0.1957, allocations: 84 kB / 383.3 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.1968, allocations: 0.5965 MB / 383.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.259e-05/0.1969, allocations: 45.69 kB / 384 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.197, allocations: 68.28 kB / 384 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.1984, allocations: 0.6327 MB / 384.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.37e-05/0.1984, allocations: 7.969 kB / 384.7 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.104e-05/0.1985, allocations: 31.94 kB / 384.7 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.1985, allocations: 16 kB / 384.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.1997, allocations: 491.6 kB / 385.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003327/0.203, allocations: 1.837 MB / 387 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.2042, allocations: 481.2 kB / 387.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005462/0.2048, allocations: 226 kB / 387.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.065e-05/0.2048, allocations: 8.438 kB / 387.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009218/0.2058, allocations: 389.1 kB / 388.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=53): time 3.617e-06/0.2058, allocations: 0 / 388.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=53): time 0.002048/0.2078, allocations: 0.7248 MB / 388.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/0.208, allocations: 115.2 kB / 389 MB, free: 1.227 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007191/0.2087, allocations: 453.9 kB / 389.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.553e-05/0.2088, allocations: 49.69 kB / 389.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003467/0.2092, allocations: 304.5 kB / 389.8 MB, free: 428 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.2094, allocations: 173.6 kB / 389.9 MB, free: 252 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.2096, allocations: 122.3 kB / 390 MB, free: 124 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003216/0.2099, allocations: 370.7 kB / 390.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005328/0.2105, allocations: 203.4 kB / 390.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007544/0.2112, allocations: 425 kB / 391 MB, free: 15.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.2124, allocations: 0.6184 MB / 391.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.2125, allocations: 8 kB / 391.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001362/0.2138, allocations: 0.6681 MB / 392.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.2139, allocations: 8.969 kB / 392.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2139, allocations: 4 kB / 392.3 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.699e-05/0.2139, allocations: 16 kB / 392.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005771/0.2145, allocations: 135.8 kB / 392.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.081e-05/0.2146, allocations: 15.94 kB / 392.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000446/0.215, allocations: 75.41 kB / 392.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.718e-05/0.2151, allocations: 31.92 kB / 392.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006202/0.2157, allocations: 349.3 kB / 392.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005557/0.2163, allocations: 401 kB / 393.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009101/0.2172, allocations: 0.5628 MB / 393.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.359e-05/0.2172, allocations: 4 kB / 393.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001282/0.2185, allocations: 0.6412 MB / 394.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2185, allocations: 8 kB / 394.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2186, allocations: 4 kB / 394.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.2186, allocations: 12 kB / 394.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000481/0.2191, allocations: 127.7 kB / 394.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.2191, allocations: 11.94 kB / 394.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.2195, allocations: 71.75 kB / 394.8 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.2195, allocations: 35.98 kB / 394.8 MB, free: 10.96 MB / 334.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,thdRMS.pythagoras.valid,thdRMS.valid,thdRMS.greaterThreshold.y,thdRMS.rootMeanSquare.mean.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean1.y,thd1.pythagoras.valid,thd1.valid,thd1.greaterThreshold.y,thd1.rootMeanSquare.mean.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.harmonic.mean2.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean1.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003462/0.2199, allocations: 242.1 kB / 395 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.22, allocations: 59.33 kB / 395.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.2214, allocations: 0.5867 MB / 395.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-06/0.2214, allocations: 4 kB / 395.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.2214, allocations: 0 / 395.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.2214, allocations: 4 kB / 395.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009112/0.2224, allocations: 0.638 MB / 396.3 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.2224, allocations: 3.984 kB / 396.3 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004368/0.2228, allocations: 83.88 kB / 396.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.2228, allocations: 3.984 kB / 396.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.398e-05/0.2229, allocations: 12 kB / 396.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.2229, allocations: 7.984 kB / 396.4 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2229, allocations: 0 / 396.4 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001775/0.2247, allocations: 0.8708 MB / 397.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.2248, allocations: 140.3 kB / 397.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.379e-05/0.2249, allocations: 16 kB / 397.5 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.2253, allocations: 35.95 kB / 397.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.2254, allocations: 48.5 kB / 397.5 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.546e-05/0.2255, allocations: 19.98 kB / 397.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004518/0.2259, allocations: 318.8 kB / 397.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.2259, allocations: 0 / 397.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008809/0.2268, allocations: 235.1 kB / 398.1 MB, free: 7.559 MB / 334.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,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002233/0.2271, allocations: 128.9 kB / 398.2 MB, free: 7.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.2289, allocations: 0.8179 MB / 399 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2289, allocations: 0 / 399 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005421/0.2294, allocations: 268.2 kB / 399.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004943/0.2299, allocations: 82.05 kB / 399.4 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.2322, allocations: 1.142 MB / 400.5 MB, free: 5.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005861/0.2328, allocations: 0.8919 MB / 401.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003846/0.2332, allocations: 104.6 kB / 401.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.2334, allocations: 55.42 kB / 401.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2334, allocations: 3.938 kB / 401.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of Templates: time 0.01375/0.2471, allocations: 6.11 MB / 407.7 MB, free: 13.89 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)