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.0008921/0.0008922, allocations: 98.75 kB / 17 MB, free: 6.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009724/0.0009725, allocations: 194.7 kB / 17.91 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002367/0.0002368, allocations: 11.98 kB / 306.8 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1027, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.01194/0.1147, allocations: 9.662 MB / 368 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007786/0.1226, allocations: 3.67 MB / 371.6 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002053/0.1247, allocations: 79.56 kB / 371.7 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1966/0.3213, allocations: 0.6045 MB / 372.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00449/0.3258, allocations: 1.607 MB / 373.9 MB, free: 8.859 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.001797/0.3276, allocations: 465.9 kB / 374.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009037/0.3367, allocations: 5.528 MB / 379.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00477/0.3415, allocations: 3.076 MB / 383 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005669/0.3472, allocations: 2.183 MB / 385.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007996/0.3552, allocations: 2.826 MB / 388 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001491/0.3567, allocations: 271.4 kB / 388.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003812/0.3606, allocations: 0.5299 MB / 388.8 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004502/0.3651, allocations: 4.868 MB / 393.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003639/0.3687, allocations: 2.559 MB / 396.2 MB, free: 4.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/0.3805, allocations: 12.69 MB / 408.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3805, allocations: 0 / 408.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3805, allocations: 0 / 408.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003743/0.3809, allocations: 0 / 408.9 MB, free: 8.148 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.02148/0.4024, allocations: 16.93 MB / 425.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.4024, allocations: 8.031 kB / 425.8 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003449/0.4059, allocations: 2.298 MB / 428.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003683/0.4096, allocations: 1.766 MB / 429.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00691/0.4165, allocations: 4.079 MB / 434 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002374/0.4168, allocations: 295.8 kB / 434.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007275/0.4175, allocations: 395.6 kB / 434.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03998/0.4575, allocations: 29.55 MB / 464.2 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.259e-05/0.4576, allocations: 4 kB / 464.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004729/0.4581, allocations: 163.9 kB / 464.4 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002305/0.4583, allocations: 208 kB / 464.6 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03902/0.4974, allocations: 27.06 MB / 491.6 MB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03841/0.5358, allocations: 22.27 MB / 0.5019 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3271/0.863, allocations: 85.74 MB / 0.5856 GB, free: 95.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.05275/0.9158, allocations: 81.67 MB / 0.6653 GB, free: 24.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003105/0.9161, allocations: 141.5 kB / 0.6655 GB, free: 24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02972/0.9459, allocations: 30.62 MB / 0.6954 GB, free: 10.92 MB / 462.1 MB Notification: Performance of pre-optimization done (n=5058): time 7.113e-06/0.9459, allocations: 0 / 0.6954 GB, free: 10.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=5065): time 13.45/14.39, allocations: 2.903 GB / 3.599 GB, free: 8.66 MB / 1.826 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005919/14.4, allocations: 7.368 MB / 3.606 GB, free: 1.527 MB / 1.826 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005002/14.4, allocations: 2.633 MB / 3.608 GB, free: 14.88 MB / 1.842 GB Notification: Performance of collectPreVariables (initialization): time 0.007285/14.41, allocations: 3.948 MB / 3.612 GB, free: 10.91 MB / 1.842 GB Notification: Performance of collectInitialEqns (initialization): time 0.00237/14.41, allocations: 1.739 MB / 3.614 GB, free: 9.156 MB / 1.842 GB Notification: Performance of collectInitialBindings (initialization): time 0.03051/14.44, allocations: 21.64 MB / 3.635 GB, free: 3.621 MB / 1.857 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005763/14.45, allocations: 1.512 MB / 3.636 GB, free: 2.109 MB / 1.857 GB Notification: Performance of setup shared object (initialization): time 0.005911/14.46, allocations: 3.503 MB / 3.64 GB, free: 14.59 MB / 1.873 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05821/14.51, allocations: 26.85 MB / 3.666 GB, free: 3.723 MB / 1.889 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.09744/14.61, allocations: 58.75 MB / 3.723 GB, free: 10.21 MB / 1.967 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07057/14.68, allocations: 38.48 MB / 3.761 GB, free: 3.676 MB / 1.998 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001908/14.68, allocations: 300 kB / 3.761 GB, free: 3.383 MB / 1.998 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1863/14.87, allocations: 87.7 MB / 3.847 GB, free: 11.57 MB / 2.092 GB Notification: Performance of prepare postOptimizeDAE: time 0.002552/14.87, allocations: 485.7 kB / 3.847 GB, free: 11.09 MB / 2.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002983/14.88, allocations: 1.031 MB / 3.848 GB, free: 10.06 MB / 2.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01147/14.89, allocations: 3.259 MB / 3.852 GB, free: 6.785 MB / 2.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04669/14.93, allocations: 10.72 MB / 3.862 GB, free: 12.04 MB / 2.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02933/14.96, allocations: 25.61 MB / 3.887 GB, free: 1.117 MB / 2.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04359/15.01, allocations: 2.5 MB / 3.89 GB, free: 14.61 MB / 2.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01263/15.02, allocations: 3.594 MB / 3.893 GB, free: 11.02 MB / 2.139 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.04316/15.06, allocations: 15.08 MB / 3.908 GB, free: 11.88 MB / 2.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006231/15.07, allocations: 2.358 MB / 3.91 GB, free: 9.504 MB / 2.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.696/23.77, allocations: 8.843 GB / 12.75 GB, free: 1.74 GB / 2.42 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.682e-05/23.77, allocations: 24 kB / 12.75 GB, free: 1.74 GB / 2.42 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.559e-05/23.77, allocations: 8 kB / 12.75 GB, free: 1.74 GB / 2.42 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.257e-05/23.77, allocations: 11.95 kB / 12.75 GB, free: 1.74 GB / 2.42 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.942/31.71, allocations: 8.865 GB / 21.62 GB, free: 1.108 GB / 2.42 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.14e-05/31.71, allocations: 0 / 21.62 GB, free: 1.108 GB / 2.42 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/31.71, allocations: 284.3 kB / 21.62 GB, free: 1.108 GB / 2.42 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004547/31.71, allocations: 1.624 MB / 21.62 GB, free: 1.106 GB / 2.42 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002205/31.72, allocations: 0.6484 MB / 21.62 GB, free: 1.105 GB / 2.42 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01745/31.73, allocations: 23.23 MB / 21.64 GB, free: 1.082 GB / 2.42 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/31.73, allocations: 4.328 kB / 21.64 GB, free: 1.082 GB / 2.42 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.831/39.56, allocations: 8.897 GB / 30.54 GB, free: 432.4 MB / 2.42 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01178/39.58, allocations: 5.088 MB / 30.55 GB, free: 428.2 MB / 2.42 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004414/39.58, allocations: 0.649 MB / 30.55 GB, free: 427.6 MB / 2.42 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008257/39.59, allocations: 0.722 MB / 30.55 GB, free: 426.9 MB / 2.42 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006428/39.6, allocations: 0.6493 MB / 30.55 GB, free: 426.2 MB / 2.42 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00265/39.6, allocations: 0.6562 MB / 30.55 GB, free: 425.6 MB / 2.42 GB Notification: Performance of sorting global known variables: time 0.003515/39.6, allocations: 1.837 MB / 30.55 GB, free: 423.7 MB / 2.42 GB Notification: Performance of sort global known variables: time 6.51e-07/39.6, allocations: 0 / 30.55 GB, free: 423.7 MB / 2.42 GB Notification: Performance of remove unused functions: time 0.05182/39.65, allocations: 9.96 MB / 30.56 GB, free: 413.8 MB / 2.42 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.635/48.29, allocations: 8.899 GB / 39.46 GB, free: 1.789 GB / 2.42 GB Notification: Performance of simCode: created initialization part: time 0.1117/48.4, allocations: 84.21 MB / 39.54 GB, free: 1.707 GB / 2.42 GB Notification: Performance of simCode: created event and clocks part: time 1.72e-05/48.4, allocations: 0 / 39.54 GB, free: 1.707 GB / 2.42 GB Notification: Performance of simCode: created simulation system equations: time 55.56/104, allocations: 28.59 GB / 68.13 GB, free: 0.8903 GB / 2.733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01585/104, allocations: 2.108 MB / 68.14 GB, free: 0.8883 GB / 2.733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4273/104.4, allocations: 437 MB / 68.56 GB, free: 449.3 MB / 2.733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01251/104.4, allocations: 9.989 MB / 68.57 GB, free: 439.3 MB / 2.733 GB Notification: Performance of simCode: alias equations: time 0.01032/104.4, allocations: 4.364 MB / 68.58 GB, free: 434.9 MB / 2.733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01273/104.4, allocations: 8.036 MB / 68.59 GB, free: 426.9 MB / 2.733 GB Notification: Performance of SimCode: time 9.22e-07/104.4, allocations: 6.516 kB / 68.59 GB, free: 426.9 MB / 2.733 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.01/105.5, allocations: 446.7 MB / 69.02 GB, free: 2.237 GB / 2.733 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/105.5, allocations: 261.9 kB / 69.02 GB, free: 2.237 GB / 2.733 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.77/132.2, allocations: 0 / 69.02 GB, free: 2.237 GB / 2.733 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