Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001215/0.001215, allocations: 100.1 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 200.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002528/0.0002528, allocations: 4 kB / 306.7 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1096, allocations: 51.49 MB / 358.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.009815/0.1194, allocations: 8.861 MB / 367.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008104/0.1276, allocations: 3.792 MB / 370.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.1301, allocations: 67.62 kB / 370.9 MB, free: 1.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002449/0.1326, allocations: 0.6568 MB / 371.6 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2339/0.3666, allocations: 1.524 MB / 373.1 MB, free: 8.973 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/FastFourierTransform.mo:538:3-629:25:writable] Warning: Pure function ‘Modelica.Math.FastFourierTransform.realFFTwriteToFile‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.002672/0.3693, allocations: 459 kB / 373.5 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01/0.3793, allocations: 3.425 MB / 377 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005392/0.3848, allocations: 3.073 MB / 380 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006709/0.3915, allocations: 2.064 MB / 382.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008013/0.3996, allocations: 2.527 MB / 384.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002492/0.4021, allocations: 271.7 kB / 384.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006704/0.4088, allocations: 0.5145 MB / 385.4 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009673/0.4185, allocations: 4.799 MB / 390.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008345/0.4269, allocations: 2.562 MB / 392.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01818/0.4451, allocations: 12.39 MB / 405.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4452, allocations: 0 / 405.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.921e-06/0.4452, allocations: 2.156 kB / 405.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0009809/0.4462, allocations: 0 / 405.2 MB, free: 13.13 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: 5853 * Number of variables: 5853 Notification: Performance of Generate backend data structure: time 0.03302/0.4793, allocations: 16.91 MB / 422.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.4793, allocations: 8.031 kB / 422.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005271/0.4846, allocations: 2.305 MB / 424.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005582/0.4902, allocations: 1.758 MB / 426.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01014/0.5004, allocations: 4.081 MB / 430.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002958/0.5007, allocations: 295.3 kB / 430.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001388/0.5021, allocations: 399.3 kB / 430.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0407/0.5429, allocations: 29.52 MB / 460.4 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.351e-05/0.543, allocations: 7.984 kB / 460.4 MB, free: 5.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004575/0.5434, allocations: 163.4 kB / 460.6 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002165/0.5437, allocations: 204 kB / 460.8 MB, free: 5.301 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03389/0.5776, allocations: 26.77 MB / 487.5 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04171/0.6193, allocations: 22.26 MB / 0.4979 GB, free: 4.379 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5191/1.139, allocations: 85.73 MB / 0.5816 GB, free: 96.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003899/1.139, allocations: 142.8 kB / 0.5817 GB, free: 96.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.033/1.172, allocations: 30.64 MB / 0.6116 GB, free: 76.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5058): time 4.619e-06/1.172, allocations: 0 / 0.6116 GB, free: 76.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=5065): time 13.58/14.75, allocations: 2.906 GB / 3.518 GB, free: 162.1 MB / 1.889 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003288/14.75, allocations: 7.356 MB / 3.525 GB, free: 154.9 MB / 1.889 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003559/14.76, allocations: 2.64 MB / 3.528 GB, free: 152.3 MB / 1.889 GB Notification: Performance of collectPreVariables (initialization): time 0.004731/14.76, allocations: 3.944 MB / 3.532 GB, free: 148.3 MB / 1.889 GB Notification: Performance of collectInitialEqns (initialization): time 0.002142/14.76, allocations: 1.743 MB / 3.533 GB, free: 146.6 MB / 1.889 GB Notification: Performance of collectInitialBindings (initialization): time 0.02792/14.79, allocations: 21.64 MB / 3.554 GB, free: 125 MB / 1.889 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006794/14.8, allocations: 1.516 MB / 3.556 GB, free: 123.5 MB / 1.889 GB Notification: Performance of setup shared object (initialization): time 0.006478/14.81, allocations: 3.503 MB / 3.559 GB, free: 120 MB / 1.889 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04956/14.86, allocations: 26.86 MB / 3.586 GB, free: 93.11 MB / 1.889 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06817/14.92, allocations: 58.47 MB / 3.643 GB, free: 19.87 MB / 1.889 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06848/14.99, allocations: 38.51 MB / 3.68 GB, free: 13.31 MB / 1.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.003174/15, allocations: 300 kB / 3.681 GB, free: 13.02 MB / 1.92 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1982/15.19, allocations: 87.73 MB / 3.766 GB, free: 5.176 MB / 1.998 GB Notification: Performance of prepare postOptimizeDAE: time 0.003754/15.2, allocations: 489.7 kB / 3.767 GB, free: 4.691 MB / 1.998 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004574/15.2, allocations: 1.031 MB / 3.768 GB, free: 3.66 MB / 1.998 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01319/15.22, allocations: 3.262 MB / 3.771 GB, free: 388 kB / 1.998 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04241/15.26, allocations: 10.72 MB / 3.781 GB, free: 5.633 MB / 2.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03154/15.29, allocations: 26.02 MB / 3.807 GB, free: 10.3 MB / 2.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03798/15.33, allocations: 2.492 MB / 3.809 GB, free: 7.812 MB / 2.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01457/15.34, allocations: 3.594 MB / 3.813 GB, free: 4.219 MB / 2.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4834 * Number of states: 0 () * Number of discrete variables: 24 ($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,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9811): * Single equations (assignments): 9800 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9,(2,100.0%) 29} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.03523/15.38, allocations: 15.09 MB / 3.827 GB, free: 5.074 MB / 2.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008088/15.39, allocations: 2.346 MB / 3.83 GB, free: 2.707 MB / 2.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.022/23.41, allocations: 8.844 GB / 12.67 GB, free: 1.315 GB / 2.733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.174e-05/23.41, allocations: 24 kB / 12.67 GB, free: 1.315 GB / 2.733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.729e-05/23.41, allocations: 8 kB / 12.67 GB, free: 1.315 GB / 2.733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.158e-05/23.41, allocations: 11.95 kB / 12.67 GB, free: 1.315 GB / 2.733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.903/31.31, allocations: 8.865 GB / 21.54 GB, free: 1.918 GB / 2.733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.898e-05/31.31, allocations: 4 kB / 21.54 GB, free: 1.918 GB / 2.733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/31.31, allocations: 293.6 kB / 21.54 GB, free: 1.917 GB / 2.733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005015/31.32, allocations: 1.624 MB / 21.54 GB, free: 1.916 GB / 2.733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003045/31.32, allocations: 0.6494 MB / 21.54 GB, free: 1.915 GB / 2.733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01956/31.34, allocations: 23.64 MB / 21.56 GB, free: 1.891 GB / 2.733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/31.34, allocations: 0 / 21.56 GB, free: 1.891 GB / 2.733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.45/38.79, allocations: 8.898 GB / 30.46 GB, free: 102.6 MB / 2.733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01286/38.8, allocations: 5.088 MB / 30.47 GB, free: 98.38 MB / 2.733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003724/38.81, allocations: 0.6484 MB / 30.47 GB, free: 97.73 MB / 2.733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007605/38.82, allocations: 0.7213 MB / 30.47 GB, free: 97.01 MB / 2.733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00489/38.82, allocations: 0.6547 MB / 30.47 GB, free: 96.36 MB / 2.733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00283/38.82, allocations: 0.6492 MB / 30.47 GB, free: 95.71 MB / 2.733 GB Notification: Performance of sorting global known variables: time 0.002682/38.83, allocations: 1.841 MB / 30.47 GB, free: 93.86 MB / 2.733 GB Notification: Performance of sort global known variables: time 3.51e-07/38.83, allocations: 4.406 kB / 30.47 GB, free: 93.86 MB / 2.733 GB Notification: Performance of remove unused functions: time 0.04457/38.87, allocations: 9.963 MB / 30.48 GB, free: 83.91 MB / 2.733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i,transformer2.l2sigma.inductor[1].i,transformer2.l2sigma.inductor[2].i,transformer2.l2sigma.inductor[3].i) * Number of discrete variables: 20 (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,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 143 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 29,(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 8.163/47.03, allocations: 8.899 GB / 39.38 GB, free: 0.6489 GB / 2.733 GB Notification: Performance of simCode: created initialization part: time 0.09829/47.13, allocations: 84.24 MB / 39.46 GB, free: 0.5669 GB / 2.733 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/47.13, allocations: 0 / 39.46 GB, free: 0.5669 GB / 2.733 GB Notification: Performance of simCode: created simulation system equations: time 53.18/100.3, allocations: 28.59 GB / 68.05 GB, free: 1.625 GB / 2.951 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009072/100.3, allocations: 1.471 MB / 68.06 GB, free: 1.624 GB / 2.951 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5568/100.9, allocations: 1.131 GB / 69.19 GB, free: 475.6 MB / 2.951 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01371/100.9, allocations: 10.28 MB / 69.2 GB, free: 465.2 MB / 2.951 GB Notification: Performance of simCode: alias equations: time 0.01072/100.9, allocations: 4.363 MB / 69.2 GB, free: 460.9 MB / 2.951 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0177/100.9, allocations: 8.036 MB / 69.21 GB, free: 452.8 MB / 2.951 GB Notification: Performance of SimCode: time 1.533e-06/100.9, allocations: 0 / 69.21 GB, free: 452.8 MB / 2.951 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.577/101.5, allocations: 446.7 MB / 69.64 GB, free: 6.941 MB / 2.951 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/101.5, allocations: 255.9 kB / 69.65 GB, free: 6.59 MB / 2.951 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.48/128, allocations: 0 / 69.65 GB, free: 6.59 MB / 2.951 GB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Rectifier12pulseFFT_fmu --startTime=0 --stopTime=0.25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Rectifier12pulseFFT.fmu > Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat does not exist to compare? outputFormat=mat