Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.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.Rectifier6pulseFFT,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.Rectifier6pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier6pulseFFT,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.Rectifier6pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009976/0.0009976, allocations: 194.8 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007913/0.0007913, allocations: 101.3 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002554, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2544, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.004531/0.259, allocations: 6.212 MB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.2624, allocations: 2.78 MB / 416.5 MB, free: 18.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004477/0.2628, allocations: 39.81 kB / 416.5 MB, free: 18.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008273/0.2637, allocations: 437.6 kB / 416.9 MB, free: 18.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.2648, allocations: 1.18 MB / 418.1 MB, free: 17.18 MB / 298.7 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.0006884/0.2655, allocations: 343.4 kB / 418.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002042/0.2676, allocations: 3.129 MB / 421.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.2691, allocations: 1.713 MB / 423.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00148/0.2706, allocations: 1.418 MB / 424.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001623/0.2722, allocations: 1.835 MB / 426.6 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002331/0.2724, allocations: 148 kB / 426.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.2735, allocations: 431.5 kB / 427.1 MB, free: 8.121 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001724/0.2753, allocations: 4.319 MB / 431.4 MB, free: 3.789 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001358/0.2767, allocations: 2.15 MB / 433.6 MB, free: 1.625 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008507/0.2852, allocations: 9.609 MB / 443.2 MB, free: 7.988 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/0.2852, allocations: 0 / 443.2 MB, free: 7.988 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.2852, allocations: 0 / 443.2 MB, free: 7.988 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0005024/0.2857, allocations: 0 / 443.2 MB, free: 7.988 MB / 314.7 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.0173/0.303, allocations: 15.14 MB / 458.3 MB, free: 8.727 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3031, allocations: 8.031 kB / 458.3 MB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002806/0.3059, allocations: 1.518 MB / 459.9 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005028/0.311, allocations: 2.954 MB / 462.8 MB, free: 4.148 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.3111, allocations: 164.4 kB / 463 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003442/0.3115, allocations: 223.9 kB / 463.2 MB, free: 3.766 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02702/0.3385, allocations: 26.95 MB / 490.1 MB, free: 8.738 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/0.3386, allocations: 3.938 kB / 490.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002214/0.3388, allocations: 95.98 kB / 490.2 MB, free: 8.641 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.3389, allocations: 116.4 kB / 490.4 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02318/0.3621, allocations: 24.41 MB / 0.5027 GB, free: 96 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3107/0.6728, allocations: 14.68 MB / 0.517 GB, free: 79.15 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03793/0.7108, allocations: 82.34 MB / 0.5975 GB, free: 13.85 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2545/0.9653, allocations: 80.4 MB / 0.676 GB, free: 153.7 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002255/0.9656, allocations: 124.9 kB / 0.6761 GB, free: 153.6 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01826/0.9839, allocations: 29.81 MB / 0.7052 GB, free: 141 MB / 458.8 MB Notification: Performance of pre-optimization done (n=4937): time 3.787e-06/0.9839, allocations: 0 / 0.7052 GB, free: 141 MB / 458.8 MB Notification: Performance of matching and sorting (n=4941): time 10.23/11.21, allocations: 2.896 GB / 3.601 GB, free: 0.9922 MB / 1.932 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004784/11.22, allocations: 7.197 MB / 3.608 GB, free: 9.961 MB / 1.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002283/11.22, allocations: 1.495 MB / 3.609 GB, free: 8.449 MB / 1.948 GB Notification: Performance of collectPreVariables (initialization): time 0.005143/11.23, allocations: 3.936 MB / 3.613 GB, free: 4.496 MB / 1.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001114/11.23, allocations: 1.03 MB / 3.614 GB, free: 3.453 MB / 1.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.02487/11.25, allocations: 21.22 MB / 3.635 GB, free: 13.95 MB / 1.979 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005305/11.26, allocations: 1.492 MB / 3.636 GB, free: 12.46 MB / 1.979 GB Notification: Performance of setup shared object (initialization): time 0.005893/11.26, allocations: 3.463 MB / 3.64 GB, free: 8.988 MB / 1.979 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04999/11.31, allocations: 26.2 MB / 3.665 GB, free: 14.75 MB / 2.011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3453/11.66, allocations: 57.9 MB / 3.722 GB, free: 1.646 GB / 2.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0644/11.72, allocations: 37.72 MB / 3.759 GB, free: 1.616 GB / 2.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001928/11.72, allocations: 300 kB / 3.759 GB, free: 1.616 GB / 2.011 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1448/11.87, allocations: 85.56 MB / 3.843 GB, free: 1.533 GB / 2.011 GB Notification: Performance of prepare postOptimizeDAE: time 0.001281/11.87, allocations: 481.7 kB / 3.843 GB, free: 1.533 GB / 2.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002008/11.87, allocations: 1.033 MB / 3.844 GB, free: 1.532 GB / 2.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005282/11.88, allocations: 2.439 MB / 3.846 GB, free: 1.53 GB / 2.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03733/11.91, allocations: 10.54 MB / 3.857 GB, free: 1.519 GB / 2.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/11.93, allocations: 12.64 MB / 3.869 GB, free: 1.507 GB / 2.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03026/11.96, allocations: 2.43 MB / 3.871 GB, free: 1.504 GB / 2.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008178/11.97, allocations: 3.563 MB / 3.875 GB, free: 1.501 GB / 2.011 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.02475/11.99, allocations: 14.49 MB / 3.889 GB, free: 1.487 GB / 2.011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003134/11.99, allocations: 2.213 MB / 3.891 GB, free: 1.486 GB / 2.011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.851/18.85, allocations: 8.841 GB / 12.73 GB, free: 0.9521 GB / 2.011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/18.85, allocations: 16.77 kB / 12.73 GB, free: 0.9521 GB / 2.011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/18.85, allocations: 4 kB / 12.73 GB, free: 0.9521 GB / 2.011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-05/18.85, allocations: 7.969 kB / 12.73 GB, free: 0.9521 GB / 2.011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.949/25.8, allocations: 8.861 GB / 21.59 GB, free: 398 MB / 2.011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/25.8, allocations: 5.062 kB / 21.59 GB, free: 398 MB / 2.011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000769/25.8, allocations: 161.3 kB / 21.59 GB, free: 397.9 MB / 2.011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002528/25.8, allocations: 0.8112 MB / 21.59 GB, free: 397.1 MB / 2.011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002336/25.8, allocations: 0.6211 MB / 21.6 GB, free: 396.4 MB / 2.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00844/25.81, allocations: 10.41 MB / 21.61 GB, free: 385.7 MB / 2.011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/25.81, allocations: 0 / 21.61 GB, free: 385.7 MB / 2.011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.358/33.17, allocations: 8.895 GB / 30.5 GB, free: 1.436 GB / 2.011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009007/33.18, allocations: 4.8 MB / 30.5 GB, free: 1.433 GB / 2.011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002267/33.18, allocations: 0.6172 MB / 30.51 GB, free: 1.432 GB / 2.011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005029/33.18, allocations: 0.6679 MB / 30.51 GB, free: 1.431 GB / 2.011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00202/33.19, allocations: 0.5642 MB / 30.51 GB, free: 1.431 GB / 2.011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001103/33.19, allocations: 0.6172 MB / 30.51 GB, free: 1.43 GB / 2.011 GB Notification: Performance of sorting global known variables: time 0.001391/33.19, allocations: 1.059 MB / 30.51 GB, free: 1.429 GB / 2.011 GB Notification: Performance of sort global known variables: time 2.01e-07/33.19, allocations: 0 / 30.51 GB, free: 1.429 GB / 2.011 GB Notification: Performance of remove unused functions: time 0.04416/33.23, allocations: 9.519 MB / 30.52 GB, free: 1.42 GB / 2.011 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 0.005055/33.24, allocations: 0.9632 MB / 30.52 GB, free: 1.419 GB / 2.011 GB Notification: Performance of simCode: created initialization part: time 0.09841/33.34, allocations: 81.75 MB / 30.6 GB, free: 1.339 GB / 2.011 GB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/33.34, allocations: 0 / 30.6 GB, free: 1.339 GB / 2.011 GB Notification: Performance of simCode: created simulation system equations: time 47.51/80.85, allocations: 28.59 GB / 59.19 GB, free: 1.172 GB / 2.323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009626/80.86, allocations: 1.654 MB / 59.19 GB, free: 1.17 GB / 2.323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09333/80.95, allocations: 66.86 MB / 59.25 GB, free: 1.105 GB / 2.323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007996/80.96, allocations: 8.822 MB / 59.26 GB, free: 1.096 GB / 2.323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004549/80.96, allocations: 1.277 MB / 59.26 GB, free: 1.095 GB / 2.323 GB Notification: Performance of SimCode: time 1.243e-06/80.96, allocations: 0 / 59.26 GB, free: 1.095 GB / 2.323 GB Notification: Performance of Templates: time 2.46/83.42, allocations: 1.407 GB / 60.67 GB, free: 1.623 GB / 2.323 GB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Rectifier6pulseFFT/Rectifier6pulseFFT.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches