Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.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.Rectifier6pulseFFT,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001018/0.001018, allocations: 99.27 kB / 17.01 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002536/0.0002537, allocations: 8 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 51.5 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.007721/0.1107, allocations: 6.23 MB / 364.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005474/0.1163, allocations: 2.778 MB / 367.3 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009875/0.1173, allocations: 47.75 kB / 367.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.1186, allocations: 437.6 kB / 367.8 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001937/0.1205, allocations: 1.169 MB / 369 MB, free: 3.305 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.001007/0.1215, allocations: 355.4 kB / 369.3 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2054/0.3269, allocations: 3.137 MB / 372.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002911/0.3299, allocations: 1.696 MB / 374.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00264/0.3326, allocations: 1.419 MB / 375.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003384/0.336, allocations: 1.834 MB / 377.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005104/0.3365, allocations: 150.1 kB / 377.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002537/0.339, allocations: 430.1 kB / 378 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005658/0.3447, allocations: 4.324 MB / 382.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005538/0.3503, allocations: 2.149 MB / 384.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0129/0.3632, allocations: 9.614 MB / 394 MB, free: 4.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.3633, allocations: 0 / 394 MB, free: 4.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.3633, allocations: 0.6562 kB / 394 MB, free: 4.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0007236/0.364, allocations: 0 / 394 MB, free: 4.645 MB / 302.1 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.01769/0.3817, allocations: 15.13 MB / 409.2 MB, free: 7.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3818, allocations: 16.03 kB / 409.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002953/0.3847, allocations: 2.052 MB / 411.2 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00351/0.3882, allocations: 1.51 MB / 412.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005444/0.3937, allocations: 2.967 MB / 415.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.3939, allocations: 164 kB / 415.9 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000369/0.3942, allocations: 215.9 kB / 416.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03947/0.4337, allocations: 27.28 MB / 443.4 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.558e-05/0.4338, allocations: 0 / 443.4 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002219/0.434, allocations: 90.41 kB / 443.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001327/0.4342, allocations: 112.5 kB / 443.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03/0.4642, allocations: 24.42 MB / 468 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03205/0.4962, allocations: 14.69 MB / 482.7 MB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2688/0.7651, allocations: 82.33 MB / 0.5518 GB, free: 133.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.04736/0.8125, allocations: 80.34 MB / 0.6302 GB, free: 63.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002298/0.8128, allocations: 129.9 kB / 0.6303 GB, free: 63.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02291/0.8357, allocations: 29.8 MB / 0.6595 GB, free: 35.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4937): time 3.958e-06/0.8357, allocations: 0 / 0.6595 GB, free: 35.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=4941): time 13.33/14.17, allocations: 2.897 GB / 3.557 GB, free: 9.406 MB / 1.779 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005832/14.18, allocations: 7.192 MB / 3.564 GB, free: 2.121 MB / 1.779 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002774/14.18, allocations: 1.491 MB / 3.565 GB, free: 0.6133 MB / 1.779 GB Notification: Performance of collectPreVariables (initialization): time 0.006456/14.18, allocations: 3.937 MB / 3.569 GB, free: 12.66 MB / 1.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.001779/14.19, allocations: 1.03 MB / 3.57 GB, free: 11.62 MB / 1.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0316/14.22, allocations: 21.22 MB / 3.591 GB, free: 6.109 MB / 1.811 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007742/14.23, allocations: 1.494 MB / 3.592 GB, free: 4.617 MB / 1.811 GB Notification: Performance of setup shared object (initialization): time 0.008646/14.23, allocations: 3.458 MB / 3.595 GB, free: 1.152 MB / 1.811 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05258/14.29, allocations: 26.2 MB / 3.621 GB, free: 6.918 MB / 1.842 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08551/14.37, allocations: 57.9 MB / 3.678 GB, free: 14.31 MB / 1.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0624/14.44, allocations: 37.72 MB / 3.714 GB, free: 8.543 MB / 1.951 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001318/14.44, allocations: 307 kB / 3.715 GB, free: 8.246 MB / 1.951 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1777/14.61, allocations: 85.56 MB / 3.798 GB, free: 2.633 MB / 2.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.00181/14.62, allocations: 486.8 kB / 3.799 GB, free: 2.152 MB / 2.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003478/14.62, allocations: 1.027 MB / 3.8 GB, free: 1.125 MB / 2.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006839/14.63, allocations: 2.435 MB / 3.802 GB, free: 14.68 MB / 2.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04003/14.67, allocations: 10.54 MB / 3.812 GB, free: 4.117 MB / 2.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01756/14.68, allocations: 12.64 MB / 3.825 GB, free: 6.945 MB / 2.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03777/14.72, allocations: 2.426 MB / 3.827 GB, free: 4.52 MB / 2.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01205/14.73, allocations: 3.562 MB / 3.831 GB, free: 0.957 MB / 2.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4822 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9717): * Single equations (assignments): 9712 * 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.03887/14.77, allocations: 14.49 MB / 3.845 GB, free: 2.398 MB / 2.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006588/14.78, allocations: 2.219 MB / 3.847 GB, free: 164 kB / 2.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.108/22.89, allocations: 8.841 GB / 12.69 GB, free: 0.4929 GB / 2.561 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.002e-05/22.89, allocations: 12 kB / 12.69 GB, free: 0.4929 GB / 2.561 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/22.89, allocations: 4 kB / 12.69 GB, free: 0.4929 GB / 2.561 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.299e-05/22.89, allocations: 7.969 kB / 12.69 GB, free: 0.4929 GB / 2.561 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.813/30.7, allocations: 8.861 GB / 21.55 GB, free: 482.9 MB / 2.561 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/30.7, allocations: 3.844 kB / 21.55 GB, free: 482.9 MB / 2.561 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007528/30.7, allocations: 159.9 kB / 21.55 GB, free: 482.7 MB / 2.561 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/30.7, allocations: 0.8134 MB / 21.55 GB, free: 481.9 MB / 2.561 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003681/30.71, allocations: 0.6225 MB / 21.55 GB, free: 481.3 MB / 2.561 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009689/30.72, allocations: 10.4 MB / 21.56 GB, free: 470.5 MB / 2.561 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/30.72, allocations: 0 / 21.56 GB, free: 470.5 MB / 2.561 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.944/38.66, allocations: 8.895 GB / 30.46 GB, free: 416.6 MB / 2.561 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01221/38.67, allocations: 4.806 MB / 30.46 GB, free: 412.6 MB / 2.561 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004363/38.68, allocations: 0.6183 MB / 30.46 GB, free: 411.9 MB / 2.561 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009324/38.69, allocations: 0.6627 MB / 30.46 GB, free: 411.3 MB / 2.561 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005359/38.69, allocations: 0.5575 MB / 30.46 GB, free: 410.7 MB / 2.561 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003435/38.7, allocations: 0.6216 MB / 30.46 GB, free: 410.1 MB / 2.561 GB Notification: Performance of sorting global known variables: time 0.001574/38.7, allocations: 1.057 MB / 30.46 GB, free: 409.1 MB / 2.561 GB Notification: Performance of sort global known variables: time 1.9e-07/38.7, allocations: 1.438 kB / 30.46 GB, free: 409.1 MB / 2.561 GB Notification: Performance of remove unused functions: time 0.05116/38.75, allocations: 9.52 MB / 30.47 GB, free: 399.5 MB / 2.561 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 77 * 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 7.838/46.59, allocations: 8.896 GB / 39.37 GB, free: 339.1 MB / 2.561 GB Notification: Performance of simCode: created initialization part: time 0.1046/46.69, allocations: 81.75 MB / 39.45 GB, free: 257.7 MB / 2.561 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/46.69, allocations: 0 / 39.45 GB, free: 257.7 MB / 2.561 GB Notification: Performance of simCode: created simulation system equations: time 54.44/101.1, allocations: 28.59 GB / 68.04 GB, free: 0.6049 GB / 3.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02061/101.2, allocations: 1.669 MB / 68.04 GB, free: 0.6033 GB / 3.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4653/101.6, allocations: 410 MB / 68.44 GB, free: 184.9 MB / 3.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02059/101.6, allocations: 8.861 MB / 68.45 GB, free: 176 MB / 3.248 GB Notification: Performance of simCode: alias equations: time 0.01132/101.7, allocations: 4.088 MB / 68.45 GB, free: 171.9 MB / 3.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01543/101.7, allocations: 7.049 MB / 68.46 GB, free: 164.8 MB / 3.248 GB Notification: Performance of SimCode: time 1.202e-06/101.7, allocations: 0 / 68.46 GB, free: 164.8 MB / 3.248 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.065/102.7, allocations: 406.6 MB / 68.86 GB, free: 2.649 GB / 3.248 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/102.7, allocations: 258.2 kB / 68.86 GB, free: 2.648 GB / 3.248 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.21/127.9, allocations: 0 / 68.86 GB, free: 2.648 GB / 3.248 GB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Rectifier6pulseFFT_fmu --startTime=0 --stopTime=0.25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Rectifier6pulseFFT.fmu > Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat does not exist to compare? outputFormat=mat