Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001586/0.001591, allocations: 188.1 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.175/2.175, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 94.8 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003932/0.0003932, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1009, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.00544/0.1064, allocations: 2.971 MB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003324/0.1097, allocations: 1.19 MB / 378.8 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005692/0.1104, allocations: 11.94 kB / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002622/0.1106, allocations: 55.42 kB / 378.9 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006452/0.1113, allocations: 123.6 kB / 379 MB, free: 10.97 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001138/0.1125, allocations: 247.6 kB / 379.2 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1138, allocations: 483 kB / 379.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007233/0.1145, allocations: 268.7 kB / 380 MB, free: 9.984 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005532/0.1151, allocations: 226.9 kB / 380.2 MB, free: 9.762 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005011/0.1156, allocations: 250.6 kB / 380.4 MB, free: 9.516 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.1158, allocations: 24 kB / 380.4 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.1159, allocations: 24 kB / 380.5 MB, free: 9.469 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.116, allocations: 107.5 kB / 380.6 MB, free: 9.363 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002115/0.1163, allocations: 149.3 kB / 380.7 MB, free: 9.211 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.1174, allocations: 0.7055 MB / 381.4 MB, free: 8.504 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1174, allocations: 0 / 381.4 MB, free: 8.504 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1174, allocations: 0 / 381.4 MB, free: 8.504 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.836e-05/0.1175, allocations: 0 / 381.4 MB, free: 8.504 MB / 282.7 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.002954/0.1204, allocations: 0.8925 MB / 382.3 MB, free: 7.559 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.1205, allocations: 16.03 kB / 382.3 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002709/0.1208, allocations: 98.5 kB / 382.4 MB, free: 7.438 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002321/0.1211, allocations: 83 kB / 382.5 MB, free: 7.355 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001733/0.1228, allocations: 0.5837 MB / 383.1 MB, free: 6.727 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-05/0.1229, allocations: 49.31 kB / 383.1 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.1231, allocations: 63.94 kB / 383.2 MB, free: 6.617 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002145/0.1253, allocations: 0.6482 MB / 383.9 MB, free: 5.953 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.091e-05/0.1254, allocations: 3.906 kB / 383.9 MB, free: 5.949 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.1255, allocations: 24 kB / 383.9 MB, free: 5.926 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.1255, allocations: 16 kB / 383.9 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002184/0.1277, allocations: 0.5192 MB / 384.4 MB, free: 5.391 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005448/0.1332, allocations: 1.888 MB / 386.3 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/0.1353, allocations: 0.5291 MB / 386.8 MB, free: 2.898 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.564e-05/0.1354, allocations: 8.438 kB / 386.8 MB, free: 2.891 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001401/0.1369, allocations: 413.1 kB / 387.2 MB, free: 2.473 MB / 282.7 MB Notification: Performance of pre-optimization done (n=53): time 3.737e-06/0.1369, allocations: 0 / 387.2 MB, free: 2.473 MB / 282.7 MB Notification: Performance of matching and sorting (n=53): time 0.003137/0.14, allocations: 0.7795 MB / 388 MB, free: 1.691 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.1402, allocations: 115.2 kB / 388.1 MB, free: 1.555 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008417/0.141, allocations: 457.8 kB / 388.6 MB, free: 1.094 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001451/0.1412, allocations: 45.7 kB / 388.6 MB, free: 1.043 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/0.1416, allocations: 342.9 kB / 389 MB, free: 0.707 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.1418, allocations: 165.7 kB / 389.1 MB, free: 0.543 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.218e-05/0.1419, allocations: 12 kB / 389.1 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.1421, allocations: 342.8 kB / 389.5 MB, free: 192 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2648/0.4069, allocations: 209.6 kB / 389.7 MB, free: 20.07 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.4082, allocations: 435 kB / 390.1 MB, free: 19.82 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.4093, allocations: 256.9 kB / 390.4 MB, free: 19.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.228e-05/0.4093, allocations: 1.688 kB / 390.4 MB, free: 19.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002656/0.412, allocations: 0.6758 MB / 391 MB, free: 19.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005937/0.4126, allocations: 2.533 MB / 393.6 MB, free: 17.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.467e-05/0.4127, allocations: 6.875 kB / 393.6 MB, free: 17.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.46e-05/0.4127, allocations: 11 kB / 393.6 MB, free: 17.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.4139, allocations: 146.9 kB / 393.7 MB, free: 17.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.879e-05/0.414, allocations: 16.33 kB / 393.7 MB, free: 17.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008173/0.4148, allocations: 93.28 kB / 393.8 MB, free: 17.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8e-05/0.4149, allocations: 28.39 kB / 393.9 MB, free: 17.09 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.415, allocations: 8.125 kB / 393.9 MB, free: 17.09 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001843/0.4168, allocations: 0.5781 MB / 394.4 MB, free: 17.03 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.4169, allocations: 6.875 kB / 394.5 MB, free: 17.03 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.4169, allocations: 11.75 kB / 394.5 MB, free: 17.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000928/0.4179, allocations: 130.7 kB / 394.6 MB, free: 17.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.322e-05/0.4179, allocations: 15.7 kB / 394.6 MB, free: 17.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006309/0.4185, allocations: 74 kB / 394.7 MB, free: 17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-05/0.4186, allocations: 27.83 kB / 394.7 MB, free: 17 MB / 282.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,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.rootMeanSquare.mean.y,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$PRE.thd1.harmonic.mean1.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean2.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.rootMeanSquare.mean.y,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.0006307/0.4193, allocations: 313.2 kB / 395 MB, free: 16.74 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.4195, allocations: 61.08 kB / 395.1 MB, free: 16.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00236/0.4219, allocations: 0.6259 MB / 395.7 MB, free: 16.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.4219, allocations: 6.047 kB / 395.7 MB, free: 16.5 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.422, allocations: 3.25 kB / 395.7 MB, free: 16.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.422, allocations: 3.656 kB / 395.7 MB, free: 16.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.4233, allocations: 0.6313 MB / 396.3 MB, free: 16.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.4234, allocations: 0 / 396.3 MB, free: 16.14 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009549/0.4243, allocations: 104.6 kB / 396.4 MB, free: 16.13 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.464e-05/0.4244, allocations: 3.344 kB / 396.4 MB, free: 16.13 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-05/0.4245, allocations: 18.98 kB / 396.5 MB, free: 16.12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.668e-06/0.4245, allocations: 3.125 kB / 396.5 MB, free: 16.12 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4245, allocations: 0 / 396.5 MB, free: 16.12 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003357/0.4279, allocations: 0.9248 MB / 397.4 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.4281, allocations: 138.2 kB / 397.5 MB, free: 15.65 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.4283, allocations: 18.09 kB / 397.5 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006494/0.429, allocations: 52.47 kB / 397.6 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.4292, allocations: 46.97 kB / 397.6 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.902e-05/0.4293, allocations: 21.78 kB / 397.7 MB, free: 15.62 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005815/0.4298, allocations: 306.7 kB / 398 MB, free: 15.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4299, allocations: 3.938 kB / 398 MB, free: 15.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001402/0.4313, allocations: 239.9 kB / 398.2 MB, free: 15.4 MB / 282.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: 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 (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.003828/0.4351, allocations: 1.495 MB / 399.7 MB, free: 14.47 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003301/0.4385, allocations: 0.8675 MB / 400.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.4386, allocations: 0 / 400.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.4397, allocations: 298.6 kB / 400.9 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006952/0.4405, allocations: 68.05 kB / 400.9 MB, free: 14.09 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005485/0.446, allocations: 6.106 MB / 407 MB, free: 8.488 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005678/0.4466, allocations: 0.9151 MB / 407.9 MB, free: 7.773 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006606/0.4473, allocations: 236.5 kB / 408.2 MB, free: 7.609 MB / 282.7 MB Notification: Performance of SimCode: time 1.393e-06/0.4473, allocations: 0 / 408.2 MB, free: 7.609 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.83/3.278, allocations: 9.918 MB / 418.1 MB, free: 3.305 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_TotalHarmonicDistortion_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_TotalHarmonicDistortion.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)