Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 185.6 kB / 8.139 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.211/1.211, allocations: 221.4 MB / 229.9 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009597/0.0009597, allocations: 93.52 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.635e-06/7.675e-06, allocations: 4 kB / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1888, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09991/0.2887, allocations: 94.81 MB / 481.7 MB, free: 7.973 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.289, allocations: 77.53 kB / 481.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.8315/1.121, allocations: 165.7 MB / 0.6323 GB, free: 4.871 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0005071/1.121, allocations: 267.8 kB / 0.6326 GB, free: 4.609 MB / 410.8 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.02796/1.149, allocations: 15.89 MB / 0.6481 GB, free: 4.598 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/1.149, allocations: 8.031 kB / 0.6481 GB, free: 4.59 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006068/1.155, allocations: 1.738 MB / 0.6498 GB, free: 2.828 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1666/1.322, allocations: 8.785 MB / 0.6584 GB, free: 76.77 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/1.322, allocations: 129.6 kB / 0.6585 GB, free: 76.77 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002156/1.324, allocations: 234.7 kB / 0.6587 GB, free: 76.77 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03422/1.358, allocations: 24.15 MB / 0.6823 GB, free: 76.71 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04286/1.401, allocations: 27.51 MB / 0.7092 GB, free: 70.89 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001513/1.402, allocations: 7.156 kB / 0.7092 GB, free: 70.89 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001764/1.403, allocations: 7.625 kB / 0.7092 GB, free: 70.89 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001628/1.403, allocations: 218.6 kB / 0.7094 GB, free: 70.86 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04939/1.453, allocations: 26.02 MB / 0.7348 GB, free: 59.99 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2174/1.67, allocations: 81.13 MB / 0.8141 GB, free: 76.99 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.04912/1.72, allocations: 79.89 MB / 0.8921 GB, free: 33.23 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003803/1.72, allocations: 145.5 kB / 0.8922 GB, free: 33.14 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03379/1.754, allocations: 29.24 MB / 0.9208 GB, free: 20.06 MB / 426.8 MB Notification: Performance of pre-optimization done (n=5058): time 8.707e-06/1.754, allocations: 0 / 0.9208 GB, free: 20.06 MB / 426.8 MB Notification: Performance of matching and sorting (n=5065): time 11.63/13.39, allocations: 4.941 GB / 5.861 GB, free: 1.476 GB / 2.464 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00421/13.39, allocations: 7.363 MB / 5.869 GB, free: 1.471 GB / 2.464 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004164/13.4, allocations: 1.865 MB / 5.87 GB, free: 1.47 GB / 2.464 GB Notification: Performance of collectPreVariables (initialization): time 0.00604/13.4, allocations: 3.472 MB / 5.874 GB, free: 1.467 GB / 2.464 GB Notification: Performance of collectInitialEqns (initialization): time 0.001773/13.4, allocations: 1.398 MB / 5.875 GB, free: 1.467 GB / 2.464 GB Notification: Performance of collectInitialBindings (initialization): time 0.02246/13.43, allocations: 21.23 MB / 5.896 GB, free: 1.451 GB / 2.464 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006416/13.43, allocations: 3.469 kB / 5.896 GB, free: 1.451 GB / 2.464 GB Notification: Performance of setup shared object (initialization): time 0.007304/13.44, allocations: 3.506 MB / 5.899 GB, free: 1.449 GB / 2.464 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04768/13.49, allocations: 26.31 MB / 5.925 GB, free: 1.435 GB / 2.464 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06096/13.55, allocations: 57.45 MB / 5.981 GB, free: 1.375 GB / 2.464 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05059/13.6, allocations: 38.52 MB / 6.019 GB, free: 1.345 GB / 2.464 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002137/13.6, allocations: 304 kB / 6.019 GB, free: 1.345 GB / 2.464 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.1489/13.75, allocations: 80.12 MB / 6.097 GB, free: 1.277 GB / 2.464 GB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/13.75, allocations: 7.609 kB / 6.097 GB, free: 1.277 GB / 2.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004088/13.75, allocations: 1.031 MB / 6.098 GB, free: 1.276 GB / 2.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007815/13.76, allocations: 3.026 MB / 6.101 GB, free: 1.273 GB / 2.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03824/13.8, allocations: 10.73 MB / 6.112 GB, free: 1.263 GB / 2.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02149/13.82, allocations: 24.06 MB / 6.135 GB, free: 1.239 GB / 2.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03565/13.86, allocations: 0.9687 MB / 6.136 GB, free: 1.238 GB / 2.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0112/13.87, allocations: 3.598 MB / 6.14 GB, free: 1.234 GB / 2.464 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 () * 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.02552/13.89, allocations: 9.489 MB / 6.149 GB, free: 1.225 GB / 2.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005819/13.9, allocations: 2.311 MB / 6.151 GB, free: 1.223 GB / 2.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.039/15.94, allocations: 2.144 GB / 8.295 GB, free: 18.39 MB / 2.464 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.224e-05/15.94, allocations: 24 kB / 8.295 GB, free: 18.37 MB / 2.464 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-05/15.94, allocations: 11.75 kB / 8.295 GB, free: 18.36 MB / 2.464 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-05/15.94, allocations: 15.59 kB / 8.295 GB, free: 18.36 MB / 2.464 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.321/19.26, allocations: 2.177 GB / 10.47 GB, free: 2.026 GB / 2.464 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/19.26, allocations: 3.969 kB / 10.47 GB, free: 2.026 GB / 2.464 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/19.26, allocations: 301.8 kB / 10.47 GB, free: 2.026 GB / 2.464 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002879/19.27, allocations: 1.402 MB / 10.47 GB, free: 2.026 GB / 2.464 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002382/19.27, allocations: 0.7551 MB / 10.47 GB, free: 2.026 GB / 2.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01568/19.28, allocations: 21.89 MB / 10.5 GB, free: 2.014 GB / 2.464 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/19.28, allocations: 0 / 10.5 GB, free: 2.014 GB / 2.464 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 1.821/21.1, allocations: 2.204 GB / 12.7 GB, free: 1.663 GB / 2.464 GB Notification: Performance of postOpt removeConstants (simulation): time 0.7272/21.83, allocations: 7.182 MB / 12.71 GB, free: 1.661 GB / 2.464 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002979/21.83, allocations: 0.6074 MB / 12.71 GB, free: 1.661 GB / 2.464 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005226/21.84, allocations: 0.6725 MB / 12.71 GB, free: 1.661 GB / 2.464 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001621/21.84, allocations: 0.5876 MB / 12.71 GB, free: 1.661 GB / 2.464 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001574/21.84, allocations: 1.242 MB / 12.71 GB, free: 1.661 GB / 2.464 GB Notification: Performance of sort global known variables: time 0.001637/21.85, allocations: 1.431 MB / 12.71 GB, free: 1.66 GB / 2.464 GB Notification: Performance of remove unused functions: time 0.03272/21.88, allocations: 8.385 MB / 12.72 GB, free: 1.66 GB / 2.464 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) * 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.001968/21.88, allocations: 1.008 MB / 12.72 GB, free: 1.66 GB / 2.464 GB Notification: Performance of simCode: created initialization part: time 0.08041/21.96, allocations: 82.19 MB / 12.8 GB, free: 1.615 GB / 2.464 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/21.96, allocations: 0 / 12.8 GB, free: 1.615 GB / 2.464 GB Notification: Performance of simCode: created simulation system equations: time 32.63/54.59, allocations: 29.1 GB / 41.9 GB, free: 0.8744 GB / 2.808 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007056/54.6, allocations: 1.18 MB / 41.9 GB, free: 0.8733 GB / 2.808 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07688/54.68, allocations: 72.73 MB / 41.97 GB, free: 0.8025 GB / 2.808 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01144/54.69, allocations: 11.55 MB / 41.99 GB, free: 0.7912 GB / 2.808 GB Notification: Performance of SimCode: time 6.21e-07/54.69, allocations: 0 / 41.99 GB, free: 0.7912 GB / 2.808 GB Notification: Performance of Templates: time 0.3311/55.02, allocations: 264.4 MB / 42.24 GB, free: 0.5385 GB / 2.808 GB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Rectifier12pulseFFT/Rectifier12pulseFFT.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches