Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009847/0.0009848, allocations: 87.34 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 180.2 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 241.2 MB, free: 5.211 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002787, allocations: 3.75 kB / 300.9 MB, free: 5.566 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 50.42 MB / 351.3 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.006315/0.1093, allocations: 6.214 MB / 357.5 MB, free: 5.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004617/0.114, allocations: 2.739 MB / 360.3 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007376/0.1148, allocations: 43.75 kB / 360.3 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.1159, allocations: 429.6 kB / 360.7 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001561/0.1174, allocations: 1.196 MB / 361.9 MB, free: 0.6484 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0008319/0.1183, allocations: 342.7 kB / 362.3 MB, free: 324 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002965/0.1213, allocations: 3.144 MB / 365.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001839/0.1231, allocations: 1.698 MB / 367.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001783/0.1249, allocations: 1.41 MB / 368.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002307/0.1272, allocations: 1.827 MB / 370.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002584/0.1275, allocations: 148 kB / 370.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.1286, allocations: 431.5 kB / 370.9 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002735/0.1313, allocations: 4.327 MB / 375.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001649/0.133, allocations: 2.146 MB / 377.4 MB, free: 1.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008065/0.1411, allocations: 9.605 MB / 387 MB, free: 7.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1411, allocations: 0 / 387 MB, free: 7.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1411, allocations: 0 / 387 MB, free: 7.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003693/0.1415, allocations: 3.938 kB / 387 MB, free: 7.477 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: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.01854/0.16, allocations: 15.13 MB / 402.1 MB, free: 8.227 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.1601, allocations: 8.031 kB / 402.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003059/0.1632, allocations: 2.064 MB / 404.2 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00293/0.1661, allocations: 1.479 MB / 405.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005703/0.1718, allocations: 2.954 MB / 408.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.172, allocations: 164.4 kB / 408.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003429/0.1723, allocations: 223.9 kB / 409 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4033/0.5756, allocations: 26.94 MB / 436 MB, free: 48.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.453e-05/0.5757, allocations: 0 / 436 MB, free: 48.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/0.5759, allocations: 94.52 kB / 436 MB, free: 48.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/0.576, allocations: 109.4 kB / 436.2 MB, free: 48.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03173/0.6078, allocations: 24.42 MB / 460.6 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01967/0.6275, allocations: 14.69 MB / 475.3 MB, free: 20.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06474/0.6923, allocations: 82.36 MB / 0.5446 GB, free: 1.879 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.257/0.9493, allocations: 80.38 MB / 0.6231 GB, free: 142.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002611/0.9496, allocations: 126.1 kB / 0.6232 GB, free: 142.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02602/0.9757, allocations: 29.81 MB / 0.6523 GB, free: 121.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=4937): time 4.529e-06/0.9757, allocations: 0 / 0.6523 GB, free: 121.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=4941): time 12.07/13.04, allocations: 2.897 GB / 3.549 GB, free: 1.607 GB / 1.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003826/13.05, allocations: 7.194 MB / 3.556 GB, free: 1.601 GB / 1.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002271/13.05, allocations: 1.495 MB / 3.557 GB, free: 1.599 GB / 1.92 GB Notification: Performance of collectPreVariables (initialization): time 0.004487/13.05, allocations: 3.939 MB / 3.561 GB, free: 1.595 GB / 1.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001507/13.05, allocations: 1.03 MB / 3.562 GB, free: 1.594 GB / 1.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.02375/13.08, allocations: 21.22 MB / 3.583 GB, free: 1.573 GB / 1.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005647/13.08, allocations: 1.488 MB / 3.584 GB, free: 1.572 GB / 1.92 GB Notification: Performance of setup shared object (initialization): time 0.005754/13.09, allocations: 3.459 MB / 3.588 GB, free: 1.569 GB / 1.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04935/13.14, allocations: 26.2 MB / 3.613 GB, free: 1.543 GB / 1.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06695/13.21, allocations: 57.91 MB / 3.67 GB, free: 1.472 GB / 1.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05616/13.26, allocations: 37.71 MB / 3.707 GB, free: 1.435 GB / 1.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001474/13.26, allocations: 308 kB / 3.707 GB, free: 1.435 GB / 1.92 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1405/13.4, allocations: 85.56 MB / 3.791 GB, free: 1.351 GB / 1.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.001494/13.41, allocations: 489.7 kB / 3.791 GB, free: 1.351 GB / 1.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00226/13.41, allocations: 1.035 MB / 3.792 GB, free: 1.35 GB / 1.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005968/13.41, allocations: 2.426 MB / 3.794 GB, free: 1.347 GB / 1.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03707/13.45, allocations: 10.54 MB / 3.805 GB, free: 1.337 GB / 1.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01205/13.46, allocations: 12.64 MB / 3.817 GB, free: 1.324 GB / 1.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03022/13.49, allocations: 2.43 MB / 3.819 GB, free: 1.322 GB / 1.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009384/13.5, allocations: 3.559 MB / 3.823 GB, free: 1.318 GB / 1.92 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.02614/13.53, allocations: 14.48 MB / 3.837 GB, free: 1.304 GB / 1.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003473/13.53, allocations: 2.215 MB / 3.839 GB, free: 1.302 GB / 1.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.035/21.57, allocations: 8.841 GB / 12.68 GB, free: 337.5 MB / 1.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/21.57, allocations: 19.47 kB / 12.68 GB, free: 337.4 MB / 1.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/21.57, allocations: 4 kB / 12.68 GB, free: 337.4 MB / 1.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.658e-05/21.57, allocations: 11.75 kB / 12.68 GB, free: 337.4 MB / 1.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.494/30.06, allocations: 8.861 GB / 21.54 GB, free: 0.8953 GB / 1.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/30.06, allocations: 1 kB / 21.54 GB, free: 0.8953 GB / 1.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007265/30.06, allocations: 161.5 kB / 21.54 GB, free: 0.8951 GB / 1.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/30.07, allocations: 0.8083 MB / 21.54 GB, free: 0.8943 GB / 1.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002076/30.07, allocations: 0.6248 MB / 21.54 GB, free: 0.8937 GB / 1.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009516/30.08, allocations: 10.41 MB / 21.55 GB, free: 0.8832 GB / 1.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/30.08, allocations: 4.031 kB / 21.55 GB, free: 0.8832 GB / 1.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.438/38.52, allocations: 8.895 GB / 30.45 GB, free: 1.419 GB / 1.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00927/38.52, allocations: 4.815 MB / 30.45 GB, free: 1.415 GB / 1.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002971/38.53, allocations: 0.6201 MB / 30.45 GB, free: 1.415 GB / 1.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006222/38.53, allocations: 0.6611 MB / 30.45 GB, free: 1.414 GB / 1.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003464/38.54, allocations: 0.5571 MB / 30.45 GB, free: 1.413 GB / 1.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002133/38.54, allocations: 0.625 MB / 30.46 GB, free: 1.413 GB / 1.92 GB Notification: Performance of sorting global known variables: time 0.001708/38.54, allocations: 1.049 MB / 30.46 GB, free: 1.412 GB / 1.92 GB Notification: Performance of sort global known variables: time 2.61e-07/38.54, allocations: 1.406 kB / 30.46 GB, free: 1.412 GB / 1.92 GB Notification: Performance of remove unused functions: time 0.04169/38.58, allocations: 9.519 MB / 30.47 GB, free: 1.402 GB / 1.92 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.982/46.57, allocations: 8.896 GB / 39.36 GB, free: 369.6 MB / 1.92 GB Notification: Performance of simCode: created initialization part: time 0.1008/46.67, allocations: 81.73 MB / 39.44 GB, free: 288.2 MB / 1.92 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/46.67, allocations: 5.094 kB / 39.44 GB, free: 288.2 MB / 1.92 GB Notification: Performance of simCode: created simulation system equations: time 63.14/109.8, allocations: 28.59 GB / 68.03 GB, free: 2.016 GB / 2.826 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0113/109.8, allocations: 1.666 MB / 68.03 GB, free: 2.014 GB / 2.826 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3942/110.2, allocations: 410 MB / 68.43 GB, free: 1.592 GB / 2.826 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01067/110.2, allocations: 8.868 MB / 68.44 GB, free: 1.583 GB / 2.826 GB Notification: Performance of simCode: alias equations: time 0.0111/110.2, allocations: 4.085 MB / 68.44 GB, free: 1.579 GB / 2.826 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01159/110.2, allocations: 7.049 MB / 68.45 GB, free: 1.572 GB / 2.826 GB Notification: Performance of SimCode: time 1.333e-06/110.2, allocations: 0 / 68.45 GB, free: 1.572 GB / 2.826 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5117/110.8, allocations: 406.6 MB / 68.85 GB, free: 1.175 GB / 2.826 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001496/110.8, allocations: 262.2 kB / 68.85 GB, free: 1.175 GB / 2.826 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.91/135.7, allocations: 0 / 68.85 GB, free: 1.175 GB / 2.826 GB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier6pulseFFT_fmu --startTime=0 --stopTime=0.25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier6pulseFFT.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat does not exist to compare? outputFormat=mat