Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_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.001144/0.001144, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008468/0.0008469, allocations: 82.7 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.828e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.08284, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3255/0.4084, allocations: 92.72 MB / 455.9 MB, free: 2.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4087, allocations: 71.34 kB / 456 MB, free: 2.738 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8544/1.263, allocations: 113.1 MB / 0.5557 GB, free: 78.55 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.335e-06/1.263, allocations: 0 / 0.5557 GB, free: 78.55 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0003775/1.264, allocations: 217.9 kB / 0.5559 GB, free: 78.54 MB / 410.8 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.02378/1.287, allocations: 14.26 MB / 0.5699 GB, free: 74.04 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/1.287, allocations: 10.16 kB / 0.5699 GB, free: 74.04 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003979/1.291, allocations: 1.479 MB / 0.5713 GB, free: 73.15 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01696/1.308, allocations: 7.615 MB / 0.5787 GB, free: 71.58 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/1.309, allocations: 73.75 kB / 0.5788 GB, free: 71.58 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001436/1.31, allocations: 138.7 kB / 0.579 GB, free: 71.57 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.027/1.337, allocations: 21.81 MB / 0.6003 GB, free: 64.73 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03132/1.368, allocations: 24.89 MB / 0.6246 GB, free: 47.66 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.971e-05/1.369, allocations: 7.594 kB / 0.6246 GB, free: 47.66 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005154/1.369, allocations: 4 kB / 0.6246 GB, free: 47.66 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001025/1.369, allocations: 108.5 kB / 0.6247 GB, free: 47.55 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02984/1.399, allocations: 18.71 MB / 0.6429 GB, free: 32.97 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2986/1.698, allocations: 80.87 MB / 0.7219 GB, free: 62.32 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.05868/1.756, allocations: 78.01 MB / 0.7981 GB, free: 13.7 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003757/1.757, allocations: 138.4 kB / 0.7982 GB, free: 13.61 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03085/1.788, allocations: 28.12 MB / 0.8257 GB, free: 0.8398 MB / 426.8 MB Notification: Performance of pre-optimization done (n=4937): time 4.749e-06/1.788, allocations: 0 / 0.8257 GB, free: 0.8398 MB / 426.8 MB Notification: Performance of matching and sorting (n=4941): time 12.21/13.99, allocations: 2.173 GB / 2.999 GB, free: 7.234 MB / 1.776 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005163/14, allocations: 7.194 MB / 3.006 GB, free: 320 kB / 1.776 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/14, allocations: 1.076 MB / 3.007 GB, free: 15.23 MB / 1.792 GB Notification: Performance of collectPreVariables (initialization): time 0.005009/14.01, allocations: 3.174 MB / 3.01 GB, free: 12.04 MB / 1.792 GB Notification: Performance of collectInitialEqns (initialization): time 0.001268/14.01, allocations: 1.038 MB / 3.011 GB, free: 11.12 MB / 1.792 GB Notification: Performance of collectInitialBindings (initialization): time 0.02657/14.03, allocations: 20.84 MB / 3.031 GB, free: 6.062 MB / 1.807 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005932/14.04, allocations: 0 / 3.031 GB, free: 6.062 MB / 1.807 GB Notification: Performance of setup shared object (initialization): time 0.008155/14.05, allocations: 3.468 MB / 3.034 GB, free: 2.59 MB / 1.807 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04837/14.1, allocations: 24.16 MB / 3.058 GB, free: 10.41 MB / 1.839 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08619/14.18, allocations: 55.11 MB / 3.112 GB, free: 5.84 MB / 1.901 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05928/14.24, allocations: 35.65 MB / 3.147 GB, free: 2.641 MB / 1.932 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001913/14.24, allocations: 300 kB / 3.147 GB, free: 2.348 MB / 1.932 GB Notification: Performance of matching and sorting (n=9771) (initialization): time 0.1728/14.42, allocations: 75.5 MB / 3.221 GB, free: 6.824 MB / 2.011 GB Notification: Performance of prepare postOptimizeDAE: time 0.001592/14.42, allocations: 481.7 kB / 3.221 GB, free: 6.348 MB / 2.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002384/14.42, allocations: 1.035 MB / 3.222 GB, free: 5.316 MB / 2.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005449/14.43, allocations: 2.302 MB / 3.224 GB, free: 3.008 MB / 2.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04094/14.47, allocations: 10.54 MB / 3.235 GB, free: 8.441 MB / 2.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01604/14.48, allocations: 12.24 MB / 3.247 GB, free: 11.76 MB / 2.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03107/14.51, allocations: 0.9336 MB / 3.248 GB, free: 10.83 MB / 2.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01395/14.53, allocations: 3.566 MB / 3.251 GB, free: 7.262 MB / 2.042 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.03272/14.56, allocations: 9.471 MB / 3.26 GB, free: 13.73 MB / 2.057 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.7904/15.35, allocations: 78.27 MB / 3.337 GB, free: 15.37 MB / 2.136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01032/15.36, allocations: 2.199 MB / 3.339 GB, free: 13.15 MB / 2.136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7706/16.13, allocations: 76.49 MB / 3.414 GB, free: 0.5664 MB / 2.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.983e-05/16.13, allocations: 12 kB / 3.414 GB, free: 0.5547 MB / 2.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/16.13, allocations: 7.984 kB / 3.414 GB, free: 0.5469 MB / 2.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.933e-05/16.13, allocations: 7.984 kB / 3.414 GB, free: 0.5391 MB / 2.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8636/17, allocations: 97.3 MB / 3.509 GB, free: 15.12 MB / 2.307 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/17, allocations: 0 / 3.509 GB, free: 15.12 MB / 2.307 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008895/17, allocations: 167.8 kB / 3.509 GB, free: 14.96 MB / 2.307 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/17, allocations: 0.6732 MB / 3.509 GB, free: 14.28 MB / 2.307 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.008045/17.01, allocations: 0.75 MB / 3.51 GB, free: 13.53 MB / 2.307 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01589/17.02, allocations: 10.03 MB / 3.52 GB, free: 3.051 MB / 2.307 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/17.02, allocations: 0 / 3.52 GB, free: 3.051 MB / 2.307 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.9176/17.94, allocations: 128.1 MB / 3.645 GB, free: 3.758 MB / 2.432 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02092/17.96, allocations: 6.037 MB / 3.651 GB, free: 13.68 MB / 2.448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006987/17.97, allocations: 0.5976 MB / 3.652 GB, free: 13.09 MB / 2.448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01206/17.98, allocations: 0.6328 MB / 3.652 GB, free: 12.45 MB / 2.448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00767/17.99, allocations: 0.5636 MB / 3.653 GB, free: 11.89 MB / 2.448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.008174/18, allocations: 1.211 MB / 3.654 GB, free: 10.68 MB / 2.448 GB Notification: Performance of sorting global known variables: time 0.002452/18, allocations: 0.8257 MB / 3.655 GB, free: 9.848 MB / 2.448 GB Notification: Performance of sort global known variables: time 6.31e-07/18, allocations: 0 / 3.655 GB, free: 9.848 MB / 2.448 GB Notification: Performance of remove unused functions: time 0.07838/18.08, allocations: 8.017 MB / 3.663 GB, free: 1.848 MB / 2.448 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.353/19.43, allocations: 135 MB / 3.794 GB, free: 2.059 GB / 2.511 GB Notification: Performance of simCode: created initialization part: time 0.1136/19.54, allocations: 77.03 MB / 3.87 GB, free: 2.023 GB / 2.511 GB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/19.54, allocations: 1.641 kB / 3.87 GB, free: 2.023 GB / 2.511 GB Notification: Performance of simCode: created simulation system equations: time 54.67/74.22, allocations: 28.61 GB / 32.48 GB, free: 2.636 GB / 3.073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01119/74.23, allocations: 0.9296 MB / 32.48 GB, free: 2.636 GB / 3.073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1406/74.37, allocations: 58.93 MB / 32.54 GB, free: 2.609 GB / 3.073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01334/74.38, allocations: 9.129 MB / 32.55 GB, free: 2.602 GB / 3.073 GB Notification: Performance of simCode: alias equations: time 0.01021/74.39, allocations: 4.051 MB / 32.55 GB, free: 2.599 GB / 3.073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01508/74.41, allocations: 7.043 MB / 32.56 GB, free: 2.592 GB / 3.073 GB Notification: Performance of SimCode: time 8.92e-07/74.41, allocations: 1.875 kB / 32.56 GB, free: 2.592 GB / 3.073 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5763/74.98, allocations: 393.1 MB / 32.94 GB, free: 2.214 GB / 3.073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/74.98, allocations: 171.2 kB / 32.94 GB, free: 2.213 GB / 3.073 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.58/94.57, allocations: 0 / 32.94 GB, free: 2.213 GB / 3.073 GB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier6pulseFFT_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier6pulseFFT.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat does not exist to compare? outputFormat=mat