Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cDC1.v|cDC2.v|transformer1.l2sigma.inductor.1..i|transformer1.l2sigma.inductor.2..i|transformer1.l2sigma.inductor.3..i|realFFT.iTick",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cDC1.v|cDC2.v|transformer1.l2sigma.inductor.1..i|transformer1.l2sigma.inductor.2..i|transformer1.l2sigma.inductor.3..i|realFFT.iTick",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 226.5 MB / 245.3 MB, free: 8.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007283/0.0007282, allocations: 96.86 kB / 297.4 MB, free: 6.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002185/0.0002186, allocations: 8 kB / 357.4 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1959, allocations: 51.29 MB / 408.7 MB, free: 27.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.116/0.312, allocations: 96.43 MB / 0.4933 GB, free: 11.19 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.3122, allocations: 81.05 kB / 0.4933 GB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7221/1.034, allocations: 167.3 MB / 0.6567 GB, free: 8 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.614e-06/1.034, allocations: 0 / 0.6567 GB, free: 8 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000605/1.035, allocations: 259.9 kB / 0.6569 GB, free: 15.75 MB / 442.7 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.3685/1.403, allocations: 16.12 MB / 0.6727 GB, free: 41.58 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/1.404, allocations: 9.969 kB / 0.6727 GB, free: 41.58 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004408/1.408, allocations: 1.763 MB / 0.6744 GB, free: 40.67 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00939/1.417, allocations: 5.603 MB / 0.6799 GB, free: 40.21 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/1.418, allocations: 295.5 kB / 0.6802 GB, free: 40.2 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001143/1.419, allocations: 383.1 kB / 0.6805 GB, free: 40.2 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03472/1.453, allocations: 27.91 MB / 0.7078 GB, free: 39.27 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.529e-05/1.454, allocations: 5.781 kB / 0.7078 GB, free: 39.27 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007644/1.454, allocations: 180.8 kB / 0.708 GB, free: 39.27 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001651/1.455, allocations: 204.4 kB / 0.7081 GB, free: 39.26 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02815/1.483, allocations: 24.2 MB / 0.7318 GB, free: 29.66 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03829/1.521, allocations: 28.73 MB / 0.7598 GB, free: 17.93 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06843/1.589, allocations: 84.62 MB / 0.8425 GB, free: 13.92 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2285/1.818, allocations: 79.52 MB / 0.9201 GB, free: 71.78 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003299/1.818, allocations: 155.4 kB / 0.9203 GB, free: 71.68 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02824/1.847, allocations: 29.07 MB / 0.9487 GB, free: 58.59 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=5058): time 6.592e-06/1.847, allocations: 3.531 kB / 0.9487 GB, free: 58.59 MB / 0.4949 GB Notification: Performance of matching and sorting (n=5065): time 9.541/11.39, allocations: 2.915 GB / 3.864 GB, free: 0.7812 MB / 1.979 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004821/11.39, allocations: 7.36 MB / 3.871 GB, free: 9.656 MB / 1.995 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004073/11.4, allocations: 2.641 MB / 3.873 GB, free: 7 MB / 1.995 GB Notification: Performance of collectPreVariables (initialization): time 0.2725/11.67, allocations: 3.947 MB / 3.877 GB, free: 1.6 GB / 1.995 GB Notification: Performance of collectInitialEqns (initialization): time 0.002008/11.67, allocations: 1.743 MB / 3.879 GB, free: 1.6 GB / 1.995 GB Notification: Performance of collectInitialBindings (initialization): time 0.01712/11.69, allocations: 21.64 MB / 3.9 GB, free: 1.587 GB / 1.995 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005016/11.69, allocations: 1.511 MB / 3.902 GB, free: 1.587 GB / 1.995 GB Notification: Performance of setup shared object (initialization): time 0.003866/11.7, allocations: 3.507 MB / 3.905 GB, free: 1.587 GB / 1.995 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03955/11.74, allocations: 26.83 MB / 3.931 GB, free: 1.587 GB / 1.995 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0598/11.8, allocations: 58.72 MB / 3.989 GB, free: 1.542 GB / 1.995 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.08208/11.88, allocations: 87.84 MB / 4.074 GB, free: 1.461 GB / 1.995 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001231/11.88, allocations: 304 kB / 4.075 GB, free: 1.46 GB / 1.995 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.1424/12.02, allocations: 87.66 MB / 4.16 GB, free: 1.383 GB / 1.995 GB Notification: Performance of prepare postOptimizeDAE: time 0.001288/12.02, allocations: 485.7 kB / 4.161 GB, free: 1.382 GB / 1.995 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001848/12.03, allocations: 1.031 MB / 4.162 GB, free: 1.381 GB / 1.995 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0054/12.03, allocations: 2.869 MB / 4.164 GB, free: 1.378 GB / 1.995 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.05015/12.08, allocations: 10.73 MB / 4.175 GB, free: 1.368 GB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0268/12.11, allocations: 25.6 MB / 4.2 GB, free: 1.342 GB / 1.995 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03792/12.15, allocations: 2.496 MB / 4.202 GB, free: 1.339 GB / 1.995 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009238/12.15, allocations: 3.605 MB / 4.206 GB, free: 1.336 GB / 1.995 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4832 * 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 (9809): * Single equations (assignments): 9798 * 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.02991/12.18, allocations: 15.08 MB / 4.221 GB, free: 1.321 GB / 1.995 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005839/12.19, allocations: 2.354 MB / 4.223 GB, free: 1.319 GB / 1.995 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835/19.03, allocations: 8.84 GB / 13.06 GB, free: 0.5772 GB / 1.995 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/19.03, allocations: 27.06 kB / 13.06 GB, free: 0.5772 GB / 1.995 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/19.03, allocations: 8 kB / 13.06 GB, free: 0.5772 GB / 1.995 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.154e-05/19.03, allocations: 11.95 kB / 13.06 GB, free: 0.5772 GB / 1.995 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.393/26.42, allocations: 8.864 GB / 21.93 GB, free: 1.411 GB / 1.995 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.205e-05/26.42, allocations: 0 / 21.93 GB, free: 1.411 GB / 1.995 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/26.42, allocations: 294.4 kB / 21.93 GB, free: 1.411 GB / 1.995 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004066/26.42, allocations: 1.39 MB / 21.93 GB, free: 1.41 GB / 1.995 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006368/26.43, allocations: 0.793 MB / 21.93 GB, free: 1.409 GB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02292/26.45, allocations: 23.24 MB / 21.95 GB, free: 1.385 GB / 1.995 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/26.45, allocations: 4.031 kB / 21.95 GB, free: 1.385 GB / 1.995 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.498/33.95, allocations: 8.892 GB / 30.84 GB, free: 0.5737 GB / 1.995 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01323/33.97, allocations: 6.193 MB / 30.85 GB, free: 0.5685 GB / 1.995 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005465/33.97, allocations: 0.6484 MB / 30.85 GB, free: 0.5678 GB / 1.995 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008694/33.98, allocations: 0.7217 MB / 30.85 GB, free: 0.5671 GB / 1.995 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004082/33.98, allocations: 0.6564 MB / 30.85 GB, free: 0.5665 GB / 1.995 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004625/33.99, allocations: 1.242 MB / 30.85 GB, free: 0.5653 GB / 1.995 GB Notification: Performance of sorting global known variables: time 0.00332/33.99, allocations: 1.853 MB / 30.86 GB, free: 0.5635 GB / 1.995 GB Notification: Performance of sort global known variables: time 3.91e-07/33.99, allocations: 0 / 30.86 GB, free: 0.5635 GB / 1.995 GB Notification: Performance of remove unused functions: time 0.04563/34.04, allocations: 9.993 MB / 30.86 GB, free: 0.5537 GB / 1.995 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 0.005229/34.04, allocations: 1.054 MB / 30.87 GB, free: 0.5529 GB / 1.995 GB Notification: Performance of simCode: created initialization part: time 0.1169/34.16, allocations: 84.21 MB / 30.95 GB, free: 483.2 MB / 1.995 GB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/34.16, allocations: 4 kB / 30.95 GB, free: 483.2 MB / 1.995 GB Notification: Performance of simCode: created simulation system equations: time 19.39/53.55, allocations: 28.59 GB / 59.54 GB, free: 0.6602 GB / 1.995 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01747/53.56, allocations: 2.086 MB / 59.54 GB, free: 0.6582 GB / 1.995 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0969/53.66, allocations: 65.62 MB / 59.6 GB, free: 0.595 GB / 1.995 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01959/53.68, allocations: 9.918 MB / 59.61 GB, free: 0.5853 GB / 1.995 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007343/53.69, allocations: 1.343 MB / 59.61 GB, free: 0.584 GB / 1.995 GB Notification: Performance of SimCode: time 1.343e-06/53.69, allocations: 0 / 59.61 GB, free: 0.584 GB / 1.995 GB Notification: Performance of Templates: time 2.718/56.41, allocations: 1.74 GB / 61.35 GB, free: 437.5 MB / 1.995 GB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Rectifier12pulseFFT/Rectifier12pulseFFT.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches