Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.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.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",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.002349/0.002349, allocations: 179 kB / 8.364 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.068/2.068, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 86.83 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.578e-05/2.574e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3488, allocations: 47.56 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1616/0.5104, allocations: 92.47 MB / 454.9 MB, free: 9.797 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.5108, allocations: 78.69 kB / 455 MB, free: 9.723 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.35/1.861, allocations: 113.1 MB / 0.5548 GB, free: 81.66 MB / 395.2 MB Notification: Performance of FrontEnd: time 2.726e-06/1.861, allocations: 0 / 0.5548 GB, free: 81.66 MB / 395.2 MB Notification: Performance of Transformations before backend: time 0.0004224/1.861, allocations: 216 kB / 0.555 GB, free: 81.65 MB / 395.2 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.02945/1.891, allocations: 14.26 MB / 0.5689 GB, free: 69.77 MB / 395.2 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/1.891, allocations: 12.03 kB / 0.5689 GB, free: 69.75 MB / 395.2 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005181/1.896, allocations: 1.483 MB / 0.5704 GB, free: 68.25 MB / 395.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02715/1.923, allocations: 7.628 MB / 0.5778 GB, free: 60.75 MB / 395.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/1.923, allocations: 75.56 kB / 0.5779 GB, free: 60.68 MB / 395.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002081/1.925, allocations: 128 kB / 0.578 GB, free: 60.55 MB / 395.2 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03813/1.964, allocations: 21.81 MB / 0.5993 GB, free: 38.73 MB / 395.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04696/2.011, allocations: 24.89 MB / 0.6236 GB, free: 13.71 MB / 395.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/2.011, allocations: 0 / 0.6236 GB, free: 13.71 MB / 395.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001834/2.013, allocations: 7.984 kB / 0.6236 GB, free: 13.7 MB / 395.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001722/2.013, allocations: 104.5 kB / 0.6237 GB, free: 13.59 MB / 395.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05382/2.067, allocations: 18.72 MB / 0.642 GB, free: 10.87 MB / 411.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3708/2.438, allocations: 80.02 MB / 0.7201 GB, free: 42.17 MB / 411.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0872/2.525, allocations: 78.48 MB / 0.7968 GB, free: 13.15 MB / 443.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004705/2.525, allocations: 134.2 kB / 0.7969 GB, free: 13.05 MB / 443.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3496/2.875, allocations: 28.12 MB / 0.8244 GB, free: 121.1 MB / 443.2 MB Notification: Performance of pre-optimization done (n=4937): time 7.795e-06/2.875, allocations: 0 / 0.8244 GB, free: 121.1 MB / 443.2 MB Notification: Performance of matching and sorting (n=4941): time 17.82/20.7, allocations: 2.17 GB / 2.994 GB, free: 7.219 MB / 1.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008483/20.71, allocations: 7.192 MB / 3.001 GB, free: 308 kB / 1.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003094/20.71, allocations: 1.078 MB / 3.002 GB, free: 15.21 MB / 1.839 GB Notification: Performance of collectPreVariables (initialization): time 0.009193/20.72, allocations: 3.174 MB / 3.005 GB, free: 12.02 MB / 1.839 GB Notification: Performance of collectInitialEqns (initialization): time 0.001727/20.72, allocations: 1.021 MB / 3.006 GB, free: 10.99 MB / 1.839 GB Notification: Performance of collectInitialBindings (initialization): time 0.03986/20.76, allocations: 20.84 MB / 3.027 GB, free: 5.867 MB / 1.855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006563/20.77, allocations: 0 / 3.027 GB, free: 5.867 MB / 1.855 GB Notification: Performance of setup shared object (initialization): time 0.00927/20.78, allocations: 3.462 MB / 3.03 GB, free: 2.395 MB / 1.855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.07045/20.85, allocations: 24.17 MB / 3.054 GB, free: 10.21 MB / 1.886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.108/20.95, allocations: 55.1 MB / 3.107 GB, free: 5.715 MB / 1.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.09625/21.05, allocations: 35.65 MB / 3.142 GB, free: 2.312 MB / 1.98 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002386/21.05, allocations: 300 kB / 3.142 GB, free: 2.02 MB / 1.98 GB Notification: Performance of matching and sorting (n=9771) (initialization): time 0.2488/21.3, allocations: 75.41 MB / 3.216 GB, free: 6.594 MB / 2.058 GB Notification: Performance of prepare postOptimizeDAE: time 0.00295/21.31, allocations: 485.7 kB / 3.217 GB, free: 6.113 MB / 2.058 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003767/21.31, allocations: 1.031 MB / 3.218 GB, free: 5.082 MB / 2.058 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007973/21.32, allocations: 2.293 MB / 3.22 GB, free: 2.781 MB / 2.058 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06516/21.38, allocations: 10.54 MB / 3.23 GB, free: 8.215 MB / 2.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02163/21.4, allocations: 12.25 MB / 3.242 GB, free: 11.53 MB / 2.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04184/21.45, allocations: 0.9335 MB / 3.243 GB, free: 10.6 MB / 2.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01312/21.46, allocations: 3.567 MB / 3.246 GB, free: 7.031 MB / 2.089 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4821 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.realFFT.firstTrigger,realFFT.firstTrigger,$PRE.realFFT.info,realFFT.info,$PRE.realFFT.buf[4000],realFFT.buf[4000],$PRE.realFFT.iTick,realFFT.iTick,$whenCondition3,$whenCondition1,$whenCondition2,realFFT.sampleTrigger,diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9716): * Single equations (assignments): 9711 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.03419/21.49, allocations: 9.467 MB / 3.256 GB, free: 13.5 MB / 2.105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 1.115/22.61, allocations: 78.26 MB / 3.332 GB, free: 15.13 MB / 2.183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009549/22.62, allocations: 2.196 MB / 3.334 GB, free: 12.92 MB / 2.183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.152/23.77, allocations: 76.5 MB / 3.409 GB, free: 344 kB / 2.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.853e-05/23.77, allocations: 17.41 kB / 3.409 GB, free: 328 kB / 2.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/23.77, allocations: 8 kB / 3.409 GB, free: 320 kB / 2.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.692e-05/23.77, allocations: 7.969 kB / 3.409 GB, free: 312 kB / 2.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.983/25.75, allocations: 97.29 MB / 3.504 GB, free: 1.932 GB / 2.339 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.406e-05/25.75, allocations: 2.938 kB / 3.504 GB, free: 1.932 GB / 2.339 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/25.75, allocations: 164.8 kB / 3.504 GB, free: 1.932 GB / 2.339 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002871/25.76, allocations: 0.6763 MB / 3.505 GB, free: 1.932 GB / 2.339 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005896/25.76, allocations: 0.7469 MB / 3.506 GB, free: 1.932 GB / 2.339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01622/25.78, allocations: 10.03 MB / 3.515 GB, free: 1.927 GB / 2.339 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/25.78, allocations: 1.281 kB / 3.515 GB, free: 1.927 GB / 2.339 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.269/27.05, allocations: 127.9 MB / 3.64 GB, free: 1.868 GB / 2.339 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02444/27.07, allocations: 6.031 MB / 3.646 GB, free: 1.864 GB / 2.339 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006507/27.08, allocations: 0.5938 MB / 3.647 GB, free: 1.863 GB / 2.339 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01455/27.09, allocations: 0.6419 MB / 3.647 GB, free: 1.863 GB / 2.339 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008099/27.1, allocations: 0.559 MB / 3.648 GB, free: 1.862 GB / 2.339 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.007704/27.11, allocations: 1.218 MB / 3.649 GB, free: 1.861 GB / 2.339 GB Notification: Performance of sorting global known variables: time 0.002767/27.11, allocations: 0.8262 MB / 3.65 GB, free: 1.86 GB / 2.339 GB Notification: Performance of sort global known variables: time 1.242e-06/27.11, allocations: 0 / 3.65 GB, free: 1.86 GB / 2.339 GB Notification: Performance of remove unused functions: time 0.05804/27.17, allocations: 8.017 MB / 3.658 GB, free: 1.852 GB / 2.339 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i) * Number of discrete variables: 14 (realFFT.sampleTrigger,$whenCondition3,$whenCondition1,$whenCondition2,diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,realFFT.firstTrigger,realFFT.info,realFFT.buf[4000],realFFT.iTick) * Number of discrete states: 5 (realFFT.info,$whenCondition2,realFFT.buf[4000],realFFT.iTick,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 1.192/28.36, allocations: 134.7 MB / 3.789 GB, free: 1.727 GB / 2.339 GB Notification: Performance of simCode: created initialization part: time 0.1457/28.51, allocations: 77.03 MB / 3.865 GB, free: 1.652 GB / 2.339 GB Notification: Performance of simCode: created event and clocks part: time 1.408e-05/28.51, allocations: 8.312 kB / 3.865 GB, free: 1.652 GB / 2.339 GB Notification: Performance of simCode: created simulation system equations: time 64.2/92.71, allocations: 28.6 GB / 32.46 GB, free: 305 MB / 3.105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01243/92.72, allocations: 0.9216 MB / 32.47 GB, free: 304.1 MB / 3.105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1839/92.91, allocations: 59.54 MB / 32.52 GB, free: 244.8 MB / 3.105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0246/92.93, allocations: 9.089 MB / 32.53 GB, free: 235.7 MB / 3.105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01889/92.95, allocations: 7.037 MB / 32.54 GB, free: 228.7 MB / 3.105 GB Notification: Performance of SimCode: time 1.453e-06/92.95, allocations: 0 / 32.54 GB, free: 228.7 MB / 3.105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 17.84/110.8, allocations: 2.427 GB / 34.97 GB, free: 0.5284 GB / 3.105 GB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1)