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/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: 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 92.8 kB / 16.3 MB, free: 6.457 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.001454/0.001454, allocations: 183.8 kB / 17.2 MB, free: 6.34 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.378/1.378, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002755, allocations: 8.109 kB / 300.7 MB, free: 5.938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1197, allocations: 50.42 MB / 351.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.008655/0.1284, allocations: 8.846 MB / 360 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007573/0.136, allocations: 3.749 MB / 363.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002016/0.1381, allocations: 75.5 kB / 363.8 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001814/0.1399, allocations: 0.6492 MB / 364.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003249/0.1432, allocations: 1.54 MB / 366 MB, free: 12.81 MB / 302.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.001476/0.1447, allocations: 459.1 kB / 366.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005044/0.1497, allocations: 3.42 MB / 369.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003593/0.1533, allocations: 3.072 MB / 372.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003349/0.1567, allocations: 2.061 MB / 375 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004924/0.1616, allocations: 2.527 MB / 377.5 MB, free: 1.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008621/0.1625, allocations: 275.9 kB / 377.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002168/0.1647, allocations: 0.5074 MB / 378.3 MB, free: 440 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003299/0.168, allocations: 4.799 MB / 383.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003324/0.1713, allocations: 2.559 MB / 385.6 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.1829, allocations: 12.38 MB / 398 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.183, allocations: 0 / 398 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.183, allocations: 4 kB / 398 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000416/0.1834, allocations: 0 / 398 MB, free: 12.62 MB / 334.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.02282/0.2062, allocations: 16.91 MB / 414.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.2063, allocations: 12.03 kB / 415 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00506/0.2113, allocations: 1.727 MB / 416.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009843/0.2212, allocations: 4.075 MB / 420.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000371/0.2216, allocations: 299.8 kB / 421.1 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/0.2231, allocations: 395.9 kB / 421.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2551/0.4782, allocations: 29.52 MB / 451 MB, free: 45.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.331e-05/0.4783, allocations: 0 / 451 MB, free: 45.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004537/0.4788, allocations: 164.9 kB / 451.1 MB, free: 45.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001968/0.479, allocations: 202.7 kB / 451.3 MB, free: 45.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02649/0.5055, allocations: 26.7 MB / 478 MB, free: 19.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03719/0.5427, allocations: 22.26 MB / 0.4886 GB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06557/0.6083, allocations: 85.81 MB / 0.5724 GB, free: 7.438 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003601/0.6087, allocations: 141.1 kB / 0.5725 GB, free: 7.285 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2403/0.849, allocations: 30.63 MB / 0.6024 GB, free: 138.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5058): time 6.241e-06/0.8491, allocations: 0 / 0.6024 GB, free: 138.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=5065): time 11.24/12.09, allocations: 2.906 GB / 3.508 GB, free: 9.598 MB / 1.951 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005366/12.1, allocations: 7.358 MB / 3.516 GB, free: 2.477 MB / 1.951 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004173/12.1, allocations: 2.625 MB / 3.518 GB, free: 15.83 MB / 1.967 GB Notification: Performance of collectPreVariables (initialization): time 0.006137/12.11, allocations: 3.955 MB / 3.522 GB, free: 11.86 MB / 1.967 GB Notification: Performance of collectInitialEqns (initialization): time 0.00281/12.11, allocations: 1.738 MB / 3.524 GB, free: 10.11 MB / 1.967 GB Notification: Performance of collectInitialBindings (initialization): time 0.3692/12.48, allocations: 21.64 MB / 3.545 GB, free: 1.655 GB / 1.967 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01015/12.49, allocations: 1.514 MB / 3.546 GB, free: 1.655 GB / 1.967 GB Notification: Performance of setup shared object (initialization): time 0.00841/12.5, allocations: 3.506 MB / 3.55 GB, free: 1.654 GB / 1.967 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05137/12.55, allocations: 26.87 MB / 3.576 GB, free: 1.64 GB / 1.967 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0699/12.62, allocations: 58.47 MB / 3.633 GB, free: 1.569 GB / 1.967 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05481/12.68, allocations: 38.51 MB / 3.671 GB, free: 1.531 GB / 1.967 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001688/12.68, allocations: 300 kB / 3.671 GB, free: 1.531 GB / 1.967 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1507/12.83, allocations: 87.73 MB / 3.757 GB, free: 1.445 GB / 1.967 GB Notification: Performance of prepare postOptimizeDAE: time 0.001854/12.83, allocations: 485.7 kB / 3.757 GB, free: 1.445 GB / 1.967 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002048/12.83, allocations: 1.039 MB / 3.758 GB, free: 1.444 GB / 1.967 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008399/12.84, allocations: 3.261 MB / 3.761 GB, free: 1.44 GB / 1.967 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03481/12.88, allocations: 10.72 MB / 3.772 GB, free: 1.43 GB / 1.967 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02211/12.9, allocations: 26.03 MB / 3.797 GB, free: 1.403 GB / 1.967 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03199/12.93, allocations: 2.496 MB / 3.8 GB, free: 1.401 GB / 1.967 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007733/12.94, allocations: 3.598 MB / 3.803 GB, free: 1.397 GB / 1.967 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.02629/12.96, allocations: 15.07 MB / 3.818 GB, free: 1.382 GB / 1.967 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003066/12.97, allocations: 2.35 MB / 3.82 GB, free: 1.38 GB / 1.967 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.019/20.99, allocations: 8.844 GB / 12.66 GB, free: 0.6277 GB / 1.967 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.313e-05/20.99, allocations: 24 kB / 12.66 GB, free: 0.6277 GB / 1.967 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-05/20.99, allocations: 10 kB / 12.66 GB, free: 0.6277 GB / 1.967 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-05/20.99, allocations: 11.95 kB / 12.66 GB, free: 0.6277 GB / 1.967 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.602/29.59, allocations: 8.865 GB / 21.53 GB, free: 1.455 GB / 1.967 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.67e-05/29.59, allocations: 2 kB / 21.53 GB, free: 1.455 GB / 1.967 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/29.59, allocations: 297.8 kB / 21.53 GB, free: 1.455 GB / 1.967 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0054/29.59, allocations: 1.62 MB / 21.53 GB, free: 1.454 GB / 1.967 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002601/29.6, allocations: 0.6445 MB / 21.53 GB, free: 1.453 GB / 1.967 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02249/29.62, allocations: 23.64 MB / 21.55 GB, free: 1.429 GB / 1.967 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/29.62, allocations: 2 kB / 21.55 GB, free: 1.429 GB / 1.967 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.065/37.68, allocations: 8.898 GB / 30.45 GB, free: 0.6053 GB / 1.967 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01375/37.7, allocations: 5.089 MB / 30.46 GB, free: 0.6012 GB / 1.967 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003357/37.7, allocations: 0.6484 MB / 30.46 GB, free: 0.6005 GB / 1.967 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007699/37.71, allocations: 0.7245 MB / 30.46 GB, free: 0.5998 GB / 1.967 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006365/37.72, allocations: 0.6505 MB / 30.46 GB, free: 0.5992 GB / 1.967 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002701/37.72, allocations: 0.6504 MB / 30.46 GB, free: 0.5986 GB / 1.967 GB Notification: Performance of sorting global known variables: time 0.003144/37.72, allocations: 1.841 MB / 30.46 GB, free: 0.5967 GB / 1.967 GB Notification: Performance of sort global known variables: time 4.81e-07/37.72, allocations: 0 / 30.46 GB, free: 0.5967 GB / 1.967 GB Notification: Performance of remove unused functions: time 0.04742/37.77, allocations: 9.965 MB / 30.47 GB, free: 0.587 GB / 1.967 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.004576/37.77, allocations: 1 MB / 30.47 GB, free: 0.5862 GB / 1.967 GB Notification: Performance of simCode: created initialization part: time 0.1045/37.88, allocations: 84.23 MB / 30.55 GB, free: 0.5043 GB / 1.967 GB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/37.88, allocations: 4 kB / 30.55 GB, free: 0.5042 GB / 1.967 GB Notification: Performance of simCode: created simulation system equations: time 60.29/98.17, allocations: 28.59 GB / 59.14 GB, free: 1.475 GB / 2.733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008264/98.18, allocations: 1.477 MB / 59.15 GB, free: 1.474 GB / 2.733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08072/98.26, allocations: 64.41 MB / 59.21 GB, free: 1.411 GB / 2.733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01161/98.27, allocations: 10.29 MB / 59.22 GB, free: 1.401 GB / 2.733 GB Notification: Performance of simCode: alias equations: time 0.009723/98.28, allocations: 4.363 MB / 59.22 GB, free: 1.397 GB / 2.733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006508/98.28, allocations: 1.335 MB / 59.22 GB, free: 1.395 GB / 2.733 GB Notification: Performance of SimCode: time 1.332e-06/98.28, allocations: 0 / 59.22 GB, free: 1.395 GB / 2.733 GB Notification: Performance of Templates: time 0.373/98.66, allocations: 287.5 MB / 59.51 GB, free: 1.115 GB / 2.733 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